Configuration#generateSchemaUpdateScript does not create unique constraints

Description

forced all unique constraints to be created in "alter table" statements. This is not wired into Configuration#generateSchemaUpdateScript as it is in generateSchemaCreationScript. See comments on

Activity

Show:

Brett Meyer April 9, 2013 at 8:03 PM

, I'm following up with

Nick Pratt April 4, 2013 at 7:51 PM

I just picked this change up in the latest snapshot build. While the generateSchemaUpdateScript is now detecting the missing constraints, it also seems to be detecting some existing constraints as missing. When you run Hibernate in update mode against HSQLDB, when Hibernate tries to apply the "missing" constraints, HSQLDB throws an exception stating that the constraint already exists. It seems to be predominantly Unique constraints on single columns.

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created March 20, 2013 at 10:25 PM
Updated September 24, 2013 at 11:15 PM
Resolved March 21, 2013 at 1:34 PM