]
Fabrizio D'Ammassa moved HBX-1143 to HHH-4454:
----------------------------------------------
Key: HHH-4454 (was: HBX-1143)
Project: Hibernate Core (was: Hibernate Tools)
Foreign Key constraints duplicated when dbCreate='update' is
set in Grails
--------------------------------------------------------------------------
Key: HHH-4454
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-4454
Project: Hibernate Core
Issue Type: Bug
Environment: Linux, Mac
Reporter: Fabrizio D'Ammassa
Attachments: testFK.tar.gz
If I create a foreign key constraint manually with and sql query and then I run grails
with 'dbCreate=update' set, it will create another foreign key constraint.
In the attached application you can find a sql folder with the schema.sql file you have
to run on your mysql server. You have to change the datasource params (dbname, dbhost,
dbuser, dbpassword) but leave the dbCreate option set to 'update' to reproduce the
bug.
After the first grails run-app you should see a duplicate constraint on your db schema
(if for example you can try to export your db schema with phpmyadmin).
Thanks
Fabrizio
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: