diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables.sql index 87bde5d3d63a..4e130a329772 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables.sql @@ -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, @@ -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 @@ -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) ) / @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables_23c.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables_23c.sql index 8f404e39d9d2..f2af6dc662ad 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables_23c.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/OGG/oracle/apimgt/tables_23c.sql @@ -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, @@ -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 @@ -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) ) / @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/Postgresql/apimgt/tables.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/Postgresql/apimgt/tables.sql index 0432714113c9..e9b8ff8fde8c 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/Postgresql/apimgt/tables.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/Postgresql/apimgt/tables.sql @@ -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, @@ -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 @@ -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) ); @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/SQLServer/mssql/apimgt/tables.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/SQLServer/mssql/apimgt/tables.sql index eb2091cb8964..ba9e5a992075 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/SQLServer/mssql/apimgt/tables.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/multi-dc/SQLServer/mssql/apimgt/tables.sql @@ -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, @@ -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 @@ -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) ); @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/db2.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/db2.sql index 53cd1a656d93..18f79845fdb9 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/db2.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/db2.sql @@ -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, @@ -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 @@ -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) ) / @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/h2.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/h2.sql index be3964c8d3a0..8c0ad159e94b 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/h2.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/h2.sql @@ -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 @@ -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, @@ -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) ); @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mssql.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mssql.sql index 4bba6df72ba4..2f4e61448898 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mssql.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mssql.sql @@ -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, @@ -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 @@ -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) ); @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql.sql index 5cd59479688a..f82158dc982d 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql.sql @@ -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, @@ -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 @@ -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; @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql_cluster.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql_cluster.sql index a3124cdb92c3..8a243b9ffc46 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql_cluster.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/mysql_cluster.sql @@ -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, @@ -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 @@ -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; @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle.sql index 0ac850bbab5c..fc86392ec80e 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle.sql @@ -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, @@ -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 @@ -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) ) / @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_23c.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_23c.sql index e59a90c6fa81..f597a9b74194 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_23c.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_23c.sql @@ -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, @@ -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 @@ -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) ) / @@ -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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_rac.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_rac.sql index a28d2bfa6eb8..304e8bcb1ac6 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_rac.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/oracle_rac.sql @@ -3506,7 +3506,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, @@ -3570,7 +3570,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 @@ -3604,7 +3604,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) ) / @@ -3614,7 +3614,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) diff --git a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/postgresql.sql b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/postgresql.sql index 32cca8323481..8f741c079bf5 100644 --- a/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/postgresql.sql +++ b/features/apimgt/org.wso2.carbon.apimgt.core.feature/src/main/resources/sql/postgresql.sql @@ -2619,7 +2619,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, @@ -2675,7 +2675,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 @@ -2705,7 +2705,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) ); @@ -2715,7 +2715,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)