Skip to content

Commit

Permalink
Update tables to increase hashing column lengths
Browse files Browse the repository at this point in the history
This commit will update the hashing column lengths of AM_SERVICE_CATALOG, AM_API_SERVICE_MAPPING, AM_OPERATION_POLICY, AM_OPERATION_POLICY_DEFINITION;
  • Loading branch information
AnuGayan committed Oct 15, 2024
1 parent fa699dc commit a5c51fa
Show file tree
Hide file tree
Showing 13 changed files with 52 additions and 52 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ CREATE TABLE AM_GW_VHOST (
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -2174,7 +2174,7 @@ CREATE TABLE AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2203,7 +2203,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)
/
Expand All @@ -2212,7 +2212,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@ CREATE TABLE AM_GW_VHOST (
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -2174,7 +2174,7 @@ CREATE TABLE AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2203,7 +2203,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)
/
Expand All @@ -2212,7 +2212,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2616,7 +2616,7 @@ DROP TABLE IF EXISTS AM_SERVICE_CATALOG;
CREATE TABLE IF NOT EXISTS AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -2676,7 +2676,7 @@ DROP TABLE IF EXISTS AM_API_SERVICE_MAPPING;
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2706,7 +2706,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY (
POLICY_PARAMETERS bytea,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
);

Expand All @@ -2718,7 +2718,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION bytea NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2506,7 +2506,7 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[A
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
SERVICE_URL VARCHAR(2048) NOT NULL,
Expand Down Expand Up @@ -2561,7 +2561,7 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[A
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2592,7 +2592,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS VARBINARY(MAX),
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
);

Expand All @@ -2602,7 +2602,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION VARBINARY(MAX) NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3036,7 +3036,7 @@ CREATE TABLE AM_GW_VHOST (
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
SERVICE_URL VARCHAR(2048) NOT NULL,
Expand Down Expand Up @@ -3100,7 +3100,7 @@ CREATE TABLE AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -3131,7 +3131,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)
/
Expand All @@ -3141,7 +3141,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2263,7 +2263,7 @@ CREATE TABLE IF NOT EXISTS AM_GW_VHOST (
CREATE TABLE IF NOT EXISTS AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand All @@ -2273,7 +2273,7 @@ CREATE TABLE IF NOT EXISTS AM_API_SERVICE_MAPPING (
CREATE TABLE IF NOT EXISTS AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -2344,7 +2344,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
);

Expand All @@ -2353,7 +2353,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2530,7 +2530,7 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[A
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
SERVICE_URL VARCHAR(2048) NOT NULL,
Expand Down Expand Up @@ -2583,7 +2583,7 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[A
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2614,7 +2614,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS VARBINARY(MAX),
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
);

Expand All @@ -2624,7 +2624,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION VARBINARY(MAX) NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2299,7 +2299,7 @@ CREATE TABLE IF NOT EXISTS AM_GW_VHOST (
CREATE TABLE IF NOT EXISTS AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand All @@ -2322,7 +2322,7 @@ CREATE TABLE IF NOT EXISTS AM_SERVICE_CATALOG (
CREATE TABLE IF NOT EXISTS AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2379,7 +2379,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)ENGINE INNODB;

Expand All @@ -2388,7 +2388,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION mediumblob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2451,7 +2451,7 @@ CREATE TABLE IF NOT EXISTS AM_GW_VHOST (
CREATE TABLE IF NOT EXISTS AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -2502,7 +2502,7 @@ CREATE TABLE IF NOT EXISTS AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE IF NOT EXISTS AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -2531,7 +2531,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)ENGINE=NDB;

Expand All @@ -2540,7 +2540,7 @@ CREATE TABLE IF NOT EXISTS AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID),
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,7 @@ CREATE TABLE AM_GW_VHOST (
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -3598,7 +3598,7 @@ CREATE TABLE AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -3633,7 +3633,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)
/
Expand All @@ -3643,7 +3643,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,7 @@ CREATE TABLE AM_GW_VHOST (
CREATE TABLE AM_SERVICE_CATALOG (
UUID VARCHAR(36) NOT NULL,
SERVICE_KEY VARCHAR(512) NOT NULL,
MD5 VARCHAR(100) NOT NULL,
MD5 VARCHAR(512) NOT NULL,
SERVICE_NAME VARCHAR(255) NOT NULL,
SERVICE_VERSION VARCHAR(30) NOT NULL,
TENANT_ID INTEGER NOT NULL,
Expand Down Expand Up @@ -3598,7 +3598,7 @@ CREATE TABLE AM_WEBHOOKS_UNSUBSCRIPTION (
CREATE TABLE AM_API_SERVICE_MAPPING (
API_ID INTEGER NOT NULL,
SERVICE_KEY VARCHAR(256) NOT NULL,
MD5 VARCHAR(100),
MD5 VARCHAR(512),
TENANT_ID INTEGER NOT NULL,
PRIMARY KEY (API_ID, SERVICE_KEY),
FOREIGN KEY (API_ID) REFERENCES AM_API(API_ID) ON DELETE CASCADE
Expand Down Expand Up @@ -3633,7 +3633,7 @@ CREATE TABLE AM_OPERATION_POLICY (
POLICY_PARAMETERS blob,
ORGANIZATION VARCHAR(100),
POLICY_CATEGORY VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(45) NOT NULL,
POLICY_MD5 VARCHAR(512) NOT NULL,
PRIMARY KEY(POLICY_UUID)
)
/
Expand All @@ -3643,7 +3643,7 @@ CREATE TABLE AM_OPERATION_POLICY_DEFINITION (
POLICY_UUID VARCHAR(45) NOT NULL,
POLICY_DEFINITION blob NOT NULL,
GATEWAY_TYPE VARCHAR(20) NOT NULL,
DEFINITION_MD5 VARCHAR(45) NOT NULL,
DEFINITION_MD5 VARCHAR(512) NOT NULL,
UNIQUE (POLICY_UUID, GATEWAY_TYPE),
FOREIGN KEY (POLICY_UUID) REFERENCES AM_OPERATION_POLICY(POLICY_UUID) ON DELETE CASCADE,
PRIMARY KEY(DEFINITION_ID)
Expand Down
Loading

0 comments on commit a5c51fa

Please sign in to comment.