Skip to content

Commit

Permalink
Fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Oct 3, 2023
1 parent 83a4e4a commit 1a137fa
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 1a137fa

Please sign in to comment.