Uploaded image for project: 'Grouper'
  1. Grouper
  2. GRP-123

allow foreign keys to print to same script as schema export

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • None
    • 1.3.0
    • API
    • 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();

      Attachments

        Activity

          People

            shilen.patel@at.internet2.edu Shilen Patel (duke.edu)
            chris.hyzer@at.internet2.edu Chris Hyzer (upenn.edu)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: