Solved

grails domain changes not getting picked up

Posted on 2011-03-10
8
354 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
From implementing a password expiration date, to datatype conversions and file export options, these are some useful settings I've found in Jasper Server.
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

749 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