-
Type:
Suggestion
-
Resolution: Done
-
Component/s: Database (Oracle)
The Hibernate version we're using is not really good at proper detection of actual state of indexes on DB columns on some DB engines and it tries to recreate them every time.
[SchemaUpdate] Unsuccessful: alter table AUTHOR add constraint author_author_name_key unique (AUTHOR_NAME) 2012-09-18 15:56:34,565 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-02261: such unique or primary key already exists in the table 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] Unsuccessful: create index author_name_idx on AUTHOR (AUTHOR_NAME) 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-01408: such column list already indexed 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] Unsuccessful: create index trust_apps_app_id_idx on TRUSTED_APPS (APP_ID) 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-01408: such column list already indexed 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] Unsuccessful: create index uuid_idx on AGENT_AUTHENTICATION (UUID) 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-01408: such column list already indexed 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] Unsuccessful: create index branch_commit_branch_id_idx on BRANCH_COMMIT_INFO (BRANCH_ID) 2012-09-18 15:56:34,580 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-01408: such column list already indexed 2012-09-18 15:56:34,596 ERROR [WrapperSimpleAppMain] [SchemaUpdate] Unsuccessful: alter table BUILD add constraint full_key_unique unique (FULL_KEY) 2012-09-18 15:56:34,596 ERROR [WrapperSimpleAppMain] [SchemaUpdate] ORA-02261: such unique or primary key already exists in the table