Sequencing in Postgres hits required Budibase validation when using it as a primary display column #15443
Labels
bb-data-ui
bug
Something isn't working
customer
Created by Linear-GitHub Sync
env - production
Bug found in production
externaldb
Relating to datasource plus
premium-enterprise
Feature for Enterprise plan
validation
Relating to validation/verification/constraints
Checklist
Hosting
Describe the bug
If the sequence is set to the primary display column after the table has been fetched, it will prompt with the "cannot be left blank" error message and prevent the row from being saved. It won't throw this error if it's already set to the display column after fetching the tables.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Regardless of when this is set to the primary display column because it is a sequence column, the required tag should be ignored, and the row should be created as the database generates the value for that field.
Screenshots

The text was updated successfully, but these errors were encountered: