Solved

grails domain changes not getting picked up

Posted on 2011-03-10
8
355 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
Technology Partners: 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
In this post we will learn different types of Android Layout and some basics of an Android App.
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.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses

739 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