Uploaded image for project: 'DdlUtils'
  1. DdlUtils
  2. DDLUTILS-208

Recreating a database does not start the new sequence at the value of the old table

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 1.3
    • None
    • PostgreSQL 8.3.1

    Description

      PlatformImplBase.processChange(RecreateTableChange) does not migrate (autoincrement) sequences, but does call SqlBuilder.dropTables. PostgreSqlBuilder.dropTables explicitly drops the sequences:
      for (int idx = 0; idx < columns.length; idx++)

      { dropAutoIncrementSequence(table, columns[idx]); }

      (On the other hand, HsqlDbBuilder does not drop the sequence for instance.)
      The sequence is created again, but that causes 'duplicate' errors on the column using the sequence.

      Attachments

        Issue Links

          Activity

            People

              tomdz Thomas Dudziak
              cordeo Cordeo
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: