aadrian opened a new issue, #14580:
URL: https://github.com/apache/grails-core/issues/14580

   ### Task List
   
   - [x] Steps to reproduce provided
   - [ ] Stacktrace (if present) provided
   - [x] Example that reproduces the problem uploaded to Github
   - [x] Full description of the issue provided (see below)
   
   ### 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
   
   - **Operating System**: OSX, Linux, Win 7,8,10
   - **GORM Version:** 6.1.9
   - **Grails Version (if using Grails):** 3.3.3
   - **JDK Version:** 1.8.0_162
   
   ### Example Application
   
   https://github.com/aadrian/fieldbugs1
   
   Thank you
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to