Using Grails 2.4.4, and have ported my domain classes from 2.2.0.
There's a problem I am facing w.r.t "create-drop" config of DataSource, using MySQL as the datasource.
Whenever I issue a grails stop-app
command, out of total 35 tables, 22 tables are left in the schema.
After enabling debug mode for Hibernate classes, and at the end of the stop-app process, it was generating drop table if exists <tablename>
for all 35 tables, but no error/confirmation was there in the logs whether the drop table succeeded or not.
The tables left are having FK associations, and they need to be removed in specific order. With same Domain class structure, I never had this problem with earlier (2.2.0) version of grails.
Right now I am manually dropping-creating everytime before run-app as it's causing trouble with the BootStrap data.
Any pointer to debug this issue or a usecase for when this can happen, shall be appreciated.