grails domain changes not getting picked up

it seems that grails domain changes, i.e. changing the length of a field in a table, are not getting picked up when the application is re-run.  Attached is code for the domain.  The configuration is set to create-drop each time, so I would expect to see the changes.
Melodi RobertsProgrammer/AnalystAsked:
Who is Participating?
 
Melodi RobertsConnect With a Mentor Programmer/AnalystAuthor Commented:
Ok. I will not select this as the answer until someone has confirmed it's ok as the answer...

The configuration/DataSource.groovy was set to "create-drop" for development, but to "update" for test.  When I was making changes, I was running integration tests.  "Update" seems to only pick up changes, such as new fields, but it does not pick up changes to lengths in fields or constraints.  I modified the DataSource.groovy to set up the test source to "create-drop" as well and all issues were resolved.
0
 
Helena Markováprogrammer-analystCommented:
There is no attached code for the domain.
0
 
Melodi RobertsProgrammer/AnalystAuthor Commented:
I found the problem. silly mistake. Sorry for wasting your time.
0
Cloud Class® Course: Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

 
Helena Markováprogrammer-analystCommented:
Have a nice day :)
0
 
aikimarkCommented:
Please accept that comment.  It is ok.

aikimark -- zone advisor
0
 
Melodi RobertsProgrammer/AnalystAuthor Commented:
I was asked to accept this as teh solution.
I'm sure there is a better solution though.
I have not had time to get back to studying groovy/grails so i don't have a better answer at the moment.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.