Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
1.3.0
-
None
Description
Hey,
I think this code means the foreign keys are just added, instead of perhaps writing to a script like schemaexport might... should we allow the same option with foreign keys?
The reason I ask is it failed for mysql for some reason, and if I could generate the whole script I could troubleshoot it.
I think the way we do ddl might change for 1.4 so not sure if we want to do this or not.
Chris
dropForeignKeys();
try
{ new SchemaExport( Hib3DAO.getConfiguration() ) .setDelimiter(";") .setOutputFile( GrouperConfig.getBuildProperty("schemaexport.out") ) .create(PRINT_DDL_TO_CONSOLE, EXPORT_DDL_TO_DB); }catch (HibernateException eH)
{ throw new GrouperDAOException( eH.getMessage(), eH ); }addForeignKeys();