org.h2.jdbc.JdbcSQLException: Duplicate column name "ENABLE_ISSUES"; SQL statement:|ALTER TABLE PUBLIC.REPOSITORY ADD ENABLE_ISSUES BOOLEAN DEFAULT TRUE NOT NULL [42121-192]

GitHub | uli-heller | 8 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Upgrading to 4.3.0: Strange behavior of the database migrations

    GitHub | 8 months ago | uli-heller
    org.h2.jdbc.JdbcSQLException: Duplicate column name "ENABLE_ISSUES"; SQL statement:|ALTER TABLE PUBLIC.REPOSITORY ADD ENABLE_ISSUES BOOLEAN DEFAULT TRUE NOT NULL [42121-192]

    Root Cause Analysis

    1. org.h2.jdbc.JdbcSQLException

      Duplicate column name "ENABLE_ISSUES"; SQL statement:|ALTER TABLE PUBLIC.REPOSITORY ADD ENABLE_ISSUES BOOLEAN DEFAULT TRUE NOT NULL [42121-192]

      at org.h2.message.DbException.getJdbcSQLException()
    2. H2 Database Engine
      MVTableEngine.createTable
      1. org.h2.message.DbException.getJdbcSQLException(DbException.java:345)
      2. org.h2.message.DbException.get(DbException.java:179)
      3. org.h2.message.DbException.get(DbException.java:155)
      4. org.h2.table.Table.setColumns(Table.java:431)
      5. org.h2.table.TableBase.<init>(TableBase.java:45)
      6. org.h2.mvstore.db.MVTable.<init>(MVTable.java:103)
      7. org.h2.mvstore.db.MVTableEngine.createTable(MVTableEngine.java:108)
      7 frames