Open aadrian opened 6 years ago
Default values used by the UI should be propagated to the DB too (for schema-export or direct use):
schema-export
https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L9 and https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L10 are not present in the generated DDL https://github.com/aadrian/fieldbugs1/blob/master/ddl.sql
DDL should contain the default values the UI is using, and if the DB does not, and dbCreate=validate than a warning/error should be displayed (like for other mapping differences).
dbCreate=validate
UI Default values are being ignored.
https://github.com/aadrian/fieldbugs1
Thank you
I also experienced this problem.
Task List
Steps to Reproduce
Default values used by the UI should be propagated to the DB too (for
schema-export
or direct use):https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L9 and https://github.com/aadrian/fieldbugs1/blob/master/grails-app/domain/com/mycorp/fieldbugs1/TableOne.groovy#L10 are not present in the generated DDL https://github.com/aadrian/fieldbugs1/blob/master/ddl.sql
Expected Behaviour
DDL should contain the default values the UI is using, and if the DB does not, and
dbCreate=validate
than a warning/error should be displayed (like for other mapping differences).Actual Behaviour
UI Default values are being ignored.
Environment Information
Example Application
https://github.com/aadrian/fieldbugs1
Thank you