Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-284

Sequences left after dropping my PostGreSQL dataBase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • empire-db-2.4.7
    • None
    • Core
    • None

    Description

      This is the exact same issue of EMPIREDB-279.

      In Postgresql we create a sequence when creating a Database :

       @Override
          protected void createDatabase(DBDatabase db, DBSQLScript script)
          {
              // Create all Sequences
              for (DBTable table : db.getTables())
              {
                  for (DBColumn dbColumn : table.getColumns()) {
                      DBTableColumn c = (DBTableColumn) dbColumn;
                      if (c.getDataType() == DataType.AUTOINC) {
                          createSequence(db, c, script);
                      }
                  }
              }
              // default processing
              super.createDatabase(db, script);
          }

      But there is nothing overriden for DDLscript when dropping the table in order to also drop the sequence.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maxoudela Samir Hadzic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: