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]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

Check if you're not creating unused SQL entities, as it might cause this exception.

Solutions on the web

via GitHub by uli-heller
, 1 year ago
Duplicate column name "ENABLE_ISSUES"; SQL statement:|ALTER TABLE PUBLIC.REPOSITORY ADD ENABLE_ISSUES BOOLEAN DEFAULT TRUE NOT NULL [42121-192]
via Google Groups by Benoit HELIE, 2 years ago
Unique index or primary key violation: "PRIMARY KEY ON """".PAGE_INDEX"; SQL statement: ALTER TABLE PUBLIC.CORE_GROUP_MEMBER ADD CONSTRAINT PUBLIC.FK_GROUP_MEMBER_PARTY FOREIGN KEY(PARTY_ID) REFERENCES PUBLIC.CORE_PARTY(PARTY_ID) NOCHECK [23505-176]
via grokbase.com by Unknown author, 1 year ago
NULL not allowed for column "MODEL_ID"; SQL statement: INSERT INTO field (dependent,slug,position,map,localized,name,locked,model_id,target_id,uuid,type,updated_at,model_position,link_id,status_position) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [23502-170]
via Google Groups by David Baldin, 2 years ago
NULL not allowed for column "MODEL_ID"; SQL statement: INSERT INTO field (dependent,slug,position,map,localized,name,locked,model_id,target_id,uuid,type,updated_at,model_position,link_id,status_position) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) [23502-170]
via codeblow.com by Unknown author, 1 year ago
Table "PERSON" not found SQL statement: Place INTO PERSON (ID, FIRSTNAME, LASTNAME) VALUES (1, 'John', 'Doe') [42102-154]
via Stack Overflow by Sarpy
, 2 years ago
Column "USER0_.USERID" not found; SQL statement: select user0_.ID as ID1_2_0_, user0_.ID as ID1_0_0_, user0_.ID as ID1_0_1_, user0_.FIRSTNAME as FIRSTNAM2_0_1_, user0_.USERNAME as USERNAME3_0_1_, user0_.LASTNAME as LASTNAME4_0_1_, user0_.USERID as
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(DbException.java:345)
at org.h2.message.DbException.get(DbException.java:179)
at org.h2.message.DbException.get(DbException.java:155)
at org.h2.table.Table.setColumns(Table.java:431)
at org.h2.table.TableBase.(TableBase.java:45)
at org.h2.mvstore.db.MVTable.(MVTable.java:103)

Users with the same issue

Once, 1 week ago
Once, 1 week ago
4 times, 1 week ago
Once, 3 weeks ago
4 times, 1 month ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.