From 1a137fa7019fb827832f8af7a549ad36d2cda599 Mon Sep 17 00:00:00 2001 From: Thamindu Aluthwala Date: Tue, 3 Oct 2023 09:25:22 +0530 Subject: [PATCH] Fix unit tests --- .../src/test/resources/dbscripts/identity.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/test/resources/dbscripts/identity.sql b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/test/resources/dbscripts/identity.sql index f71aac898c58..5ae5442955e9 100644 --- a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/test/resources/dbscripts/identity.sql +++ b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/test/resources/dbscripts/identity.sql @@ -1137,6 +1137,20 @@ CREATE TABLE IF NOT EXISTS IDN_CORS_ASSOCIATION ( FOREIGN KEY (SP_APP_ID) REFERENCES SP_APP (ID) ON DELETE CASCADE ); +CREATE TABLE IF NOT EXISTS SP_SHARED_APP ( + ID INTEGER NOT NULL AUTO_INCREMENT, + MAIN_APP_ID CHAR(36) NOT NULL, + OWNER_ORG_ID CHAR(36) NOT NULL, + SHARED_APP_ID CHAR(36) NOT NULL, + SHARED_ORG_ID CHAR(36) NOT NULL, + SHARE_WITH_ALL_CHILDREN BOOLEAN DEFAULT FALSE, + PRIMARY KEY (ID), + FOREIGN KEY (MAIN_APP_ID) REFERENCES SP_APP(UUID) ON DELETE CASCADE, + FOREIGN KEY (SHARED_APP_ID) REFERENCES SP_APP(UUID) ON DELETE CASCADE, + UNIQUE (MAIN_APP_ID, OWNER_ORG_ID, SHARED_ORG_ID), + UNIQUE (SHARED_APP_ID) +); + CREATE TABLE IF NOT EXISTS API_RESOURCE ( ID VARCHAR(255) NOT NULL PRIMARY KEY, CURSOR_KEY INTEGER NOT NULL AUTO_INCREMENT,