From 4daf506c537c345d5b856dcccf51818354b76232 Mon Sep 17 00:00:00 2001 From: BLasan Date: Thu, 3 Oct 2024 07:44:16 +0530 Subject: [PATCH] Add: DB2 Schema for Sequence Backend --- .../src/main/resources/sql/db2.sql | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 6ac56f1cebfa..6bdfe33d2ea2 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 @@ -2339,6 +2339,17 @@ CREATE TABLE AM_API ( UNIQUE (API_PROVIDER,API_NAME,API_VERSION,ORGANIZATION) )/ +CREATE TABLE AM_API_SEQUENCE_BACKEND ( + ID VARCHAR(60) NOT NULL, + API_UUID VARCHAR(256) NOT NULL, + REVISION_UUID VARCHAR(256) DEFAULT '0', + SEQUENCE BLOB NOT NULL, + NAME VARCHAR(256) NOT NULL, + TYPE VARCHAR(120) NOT NULL, + PRIMARY KEY (ID, API_UUID, REVISION_UUID, TYPE), + FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE +)/ + CREATE TABLE AM_GRAPHQL_COMPLEXITY ( UUID VARCHAR(256) NOT NULL, API_ID INTEGER NOT NULL,