?
Solved

grails domain changes not getting picked up

Posted on 2011-03-10
8
Medium Priority
?
359 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
6 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
Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

 

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 46

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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Shell script to create broker configuration file using current broker Configuration, solely for purpose of backup on Linux. Script may need to be modified depending on OS-installation. Please deploy and verify the script in a test environment.
This video shows syntax for various backup options while discussing how the different basic backup types work.  It explains how to take full backups, incremental level 0 backups, incremental level 1 backups in both differential and cumulative mode a…
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month15 days, 4 hours left to enroll

840 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