Skip to content

Commit

Permalink
Update mysql script
Browse files Browse the repository at this point in the history
  • Loading branch information
ThaminduR committed Sep 19, 2023
1 parent dafe1e4 commit b176514
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1344,8 +1344,9 @@ CREATE TABLE IF NOT EXISTS API_RESOURCE (
DESCRIPTION VARCHAR(255),
TYPE VARCHAR(255) NOT NULL,
REQUIRES_AUTHORIZATION BOOLEAN NOT NULL,
UNIQUE KEY (CURSOR_KEY),
CONSTRAINT IDENTIFIER_UNIQUE UNIQUE (IDENTIFIER, TENANT_ID)
)ENGINE INNODB;
)DEFAULT CHARACTER SET latin1 ENGINE INNODB;

CREATE TABLE IF NOT EXISTS SCOPE (
ID VARCHAR(255) NOT NULL PRIMARY KEY,
Expand All @@ -1355,9 +1356,10 @@ CREATE TABLE IF NOT EXISTS SCOPE (
DISPLAY_NAME VARCHAR(255) NOT NULL,
TENANT_ID INT NOT NULL,
DESCRIPTION VARCHAR(300),
UNIQUE KEY (CURSOR_KEY),
FOREIGN KEY (API_ID) REFERENCES API_RESOURCE(ID) ON DELETE CASCADE,
CONSTRAINT SCOPE_UNIQUE UNIQUE (NAME, TENANT_ID)
)ENGINE INNODB;
)DEFAULT CHARACTER SET latin1 ENGINE INNODB;

-- --------------------------- INDEX CREATION -----------------------------
-- IDN_OAUTH2_ACCESS_TOKEN --
Expand Down

0 comments on commit b176514

Please sign in to comment.