From 4983bc13c335ea67dfa95cd714e915678c6564f2 Mon Sep 17 00:00:00 2001 From: felmer <felmer> Date: Mon, 6 Apr 2009 08:07:52 +0000 Subject: [PATCH] LMS-836 Because of a change in migration-027-028.sql after it had been executed on the productive data base on sprint server the index EXAT_EXAC_FK_I might not exist. SVN: 10597 --- openbis/source/sql/postgresql/migration/migration-030-031.sql | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openbis/source/sql/postgresql/migration/migration-030-031.sql b/openbis/source/sql/postgresql/migration/migration-030-031.sql index ae2b8984769..2004ec95f62 100644 --- a/openbis/source/sql/postgresql/migration/migration-030-031.sql +++ b/openbis/source/sql/postgresql/migration/migration-030-031.sql @@ -10,7 +10,9 @@ ALTER TABLE EXPERIMENT_ATTACHMENT_CONTENT_ID_SEQ RENAME TO ATTACHMENT_CONTENT_ID ALTER INDEX EXAT_EXPE_FK_I RENAME TO ATTA_EXPE_FK_I; ALTER INDEX EXAT_PERS_FK_I RENAME TO ATTA_PERS_FK_I; -ALTER INDEX EXAT_EXAC_FK_I RENAME TO ATTA_EXAC_FK_I; +-- Index couldn't be renamed because it might not exist +DROP INDEX IF EXISTS EXAT_EXAC_FK_I; +CREATE INDEX ATTA_EXAC_FK_I ON ATTACHMENTS (EXAC_ID); -- it's not possible to rename constraints, we drop and create them with different names -- GitLab