From 515aebcd071555040c24c14872da1dd149ddd108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcelo=20Henrique=20Gon=C3=A7alves?= Date: Tue, 25 May 2021 16:19:31 -0300 Subject: [PATCH] Commented 2 unnecessary indexes present in a few D_MC and D_MM tables. --- donkey/donkeydbconf/derby.xml | 8 ++++---- donkey/donkeydbconf/mysql.xml | 10 ++++++---- donkey/donkeydbconf/oracle.xml | 8 ++++---- donkey/donkeydbconf/postgres.xml | 8 ++++---- donkey/donkeydbconf/sqlserver.xml | 8 ++++---- 5 files changed, 22 insertions(+), 20 deletions(-) diff --git a/donkey/donkeydbconf/derby.xml b/donkey/donkeydbconf/derby.xml index 647742fa8d..9811993f1a 100644 --- a/donkey/donkeydbconf/derby.xml +++ b/donkey/donkeydbconf/derby.xml @@ -48,11 +48,11 @@ CREATE INDEX D_MM${localChannelId}_INDEX3 ON D_MM${localChannelId}(ID, STATUS, SERVER_ID) - + CREATE TABLE D_MC${localChannelId} ( METADATA_ID INTEGER NOT NULL, @@ -65,11 +65,11 @@ CONSTRAINT D_MC${localChannelId}_FKEY FOREIGN KEY(MESSAGE_ID, METADATA_ID) REFERENCES D_MM${localChannelId}(MESSAGE_ID, ID) ON DELETE RESTRICT ) - + CREATE TABLE D_MCM${localChannelId} ( METADATA_ID INTEGER NOT NULL, diff --git a/donkey/donkeydbconf/mysql.xml b/donkey/donkeydbconf/mysql.xml index 14fe4b3b58..a977569897 100644 --- a/donkey/donkeydbconf/mysql.xml +++ b/donkey/donkeydbconf/mysql.xml @@ -48,11 +48,12 @@ CREATE INDEX D_MM${localChannelId}_INDEX3 ON D_MM${localChannelId}(ID, STATUS, SERVER_ID) - + CREATE TABLE D_MC${localChannelId} ( METADATA_ID INTEGER NOT NULL, @@ -65,11 +66,12 @@ CONSTRAINT D_MC${localChannelId}_FKEY FOREIGN KEY(MESSAGE_ID, METADATA_ID) REFERENCES D_MM${localChannelId}(MESSAGE_ID, ID) ON DELETE CASCADE ) ENGINE=InnoDB; - + CREATE TABLE D_MCM${localChannelId} ( METADATA_ID INTEGER NOT NULL, diff --git a/donkey/donkeydbconf/oracle.xml b/donkey/donkeydbconf/oracle.xml index 4fec98faf7..d40acf945c 100644 --- a/donkey/donkeydbconf/oracle.xml +++ b/donkey/donkeydbconf/oracle.xml @@ -48,11 +48,11 @@ CREATE INDEX D_MM${localChannelId}_INDEX3 ON D_MM${localChannelId}(ID, STATUS, SERVER_ID) - + CREATE TABLE D_MC${localChannelId} ( METADATA_ID NUMBER(10) NOT NULL, @@ -65,11 +65,11 @@ CONSTRAINT D_MC${localChannelId}_FKEY FOREIGN KEY(MESSAGE_ID, METADATA_ID) REFERENCES D_MM${localChannelId}(MESSAGE_ID, ID) ON DELETE CASCADE ) - + CREATE TABLE D_MCM${localChannelId} ( METADATA_ID NUMBER(10) NOT NULL, diff --git a/donkey/donkeydbconf/postgres.xml b/donkey/donkeydbconf/postgres.xml index ebd5ea7e11..921d0e5a30 100644 --- a/donkey/donkeydbconf/postgres.xml +++ b/donkey/donkeydbconf/postgres.xml @@ -48,11 +48,11 @@ CREATE INDEX D_MM${localChannelId}_INDEX3 ON D_MM${localChannelId} USING BTREE (ID, STATUS, SERVER_ID) - + CREATE TABLE D_MC${localChannelId} ( METADATA_ID INTEGER NOT NULL, @@ -65,11 +65,11 @@ CONSTRAINT D_MC${localChannelId}_FKEY FOREIGN KEY(MESSAGE_ID, METADATA_ID) REFERENCES D_MM${localChannelId}(MESSAGE_ID, ID) ON DELETE CASCADE ); - + CREATE TABLE D_MCM${localChannelId} ( METADATA_ID INTEGER NOT NULL, diff --git a/donkey/donkeydbconf/sqlserver.xml b/donkey/donkeydbconf/sqlserver.xml index c924520a1e..284fadb087 100644 --- a/donkey/donkeydbconf/sqlserver.xml +++ b/donkey/donkeydbconf/sqlserver.xml @@ -48,11 +48,11 @@ CREATE INDEX D_MM${localChannelId}_INDEX3 ON D_MM${localChannelId}(ID, STATUS, SERVER_ID) - + CREATE TABLE D_MC${localChannelId} ( METADATA_ID INTEGER NOT NULL, @@ -65,11 +65,11 @@ CONSTRAINT D_MC${localChannelId}_FKEY FOREIGN KEY(MESSAGE_ID, METADATA_ID) REFERENCES D_MM${localChannelId}(MESSAGE_ID, ID) ON DELETE CASCADE ) - + CREATE TABLE D_MCM${localChannelId} ( METADATA_ID INTEGER NOT NULL,