Solved

grails domain changes not getting picked up

Posted on 2011-03-10
8
346 Views
Last Modified: 2013-11-13
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.
0
Comment
Question by:melodi_roberts
  • 3
  • 2
8 Comments
 
LVL 22

Expert Comment

by:Helena Marková
ID: 35106208
There is no attached code for the domain.
0
 

Author Comment

by:melodi_roberts
ID: 35109026
I found the problem. silly mistake. Sorry for wasting your time.
0
 
LVL 22

Expert Comment

by:Helena Marková
ID: 35125717
Have a nice day :)
0
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

Accepted Solution

by:
melodi_roberts earned 0 total points
ID: 35137966
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
 
LVL 45

Expert Comment

by:aikimark
ID: 35138073
Please accept that comment.  It is ok.

aikimark -- zone advisor
0
 

Author Closing Comment

by:melodi_roberts
ID: 36321134
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

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
This video shows how to Export data from an Oracle database using the Datapump Export Utility.  The corresponding Datapump Import utility is also discussed and demonstrated.
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now