From 7dfca9586ceee7427f9ed9dabd6bdd0a57bd8fec Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 24 Sep 2009 23:30:23 +0000 Subject: [PATCH] Fix [2795492] - Tables without primary key https://sourceforge.net/tracker/index.php?func=detail&aid=2795492&group_id=176962&atid=879332 Thanks to Moyses --- migration/354a-trunk/oracle/584_BF2795492.sql | 6 ++++++ migration/354a-trunk/postgresql/584_BF2795492.sql | 6 ++++++ 2 files changed, 12 insertions(+) create mode 100644 migration/354a-trunk/oracle/584_BF2795492.sql create mode 100644 migration/354a-trunk/postgresql/584_BF2795492.sql diff --git a/migration/354a-trunk/oracle/584_BF2795492.sql b/migration/354a-trunk/oracle/584_BF2795492.sql new file mode 100644 index 0000000000..b36ec04366 --- /dev/null +++ b/migration/354a-trunk/oracle/584_BF2795492.sql @@ -0,0 +1,6 @@ +-- Bug 2795492 - Tables without primary key + +ALTER TABLE AD_DOCUMENT_ACTION_ACCESS ADD CONSTRAINT AD_DOCUMENT_ACTION_ACCESS_KEY PRIMARY KEY (AD_ROLE_ID, C_DOCTYPE_ID, AD_REF_LIST_ID); + +ALTER TABLE R_CONTACTINTEREST ADD CONSTRAINT R_CONTACTINTEREST_KEY PRIMARY KEY (AD_USER_ID, R_INTERESTAREA_ID); + diff --git a/migration/354a-trunk/postgresql/584_BF2795492.sql b/migration/354a-trunk/postgresql/584_BF2795492.sql new file mode 100644 index 0000000000..b36ec04366 --- /dev/null +++ b/migration/354a-trunk/postgresql/584_BF2795492.sql @@ -0,0 +1,6 @@ +-- Bug 2795492 - Tables without primary key + +ALTER TABLE AD_DOCUMENT_ACTION_ACCESS ADD CONSTRAINT AD_DOCUMENT_ACTION_ACCESS_KEY PRIMARY KEY (AD_ROLE_ID, C_DOCTYPE_ID, AD_REF_LIST_ID); + +ALTER TABLE R_CONTACTINTEREST ADD CONSTRAINT R_CONTACTINTEREST_KEY PRIMARY KEY (AD_USER_ID, R_INTERESTAREA_ID); +