Skip to content

Commit

Permalink
Update primary key
Browse files Browse the repository at this point in the history
  • Loading branch information
dewniMW committed Nov 21, 2023
1 parent 41adee4 commit 63a404e
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1926,7 +1926,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER NOT NULL,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1298,7 +1298,7 @@ CREATE TABLE IF NOT EXISTS IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT(
ID INTEGER NOT NULL AUTO_INCREMENT,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER IDENTITY(1,1) NOT NULL,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
CONSTRAINT PK_ORG_USER_ROLE_ASSIGNMENT PRIMARY KEY(INVITATION_ID, APPLICATION_ID, ROLE_ID),
CONSTRAINT PK_ORG_USER_ROLE_ASSIGNMENT PRIMARY KEY(INVITATION_ID, ROLE_ID),
CONSTRAINT FK_ORG_USER_ROLE_ORG_USER_INVITATION FOREIGN KEY(INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1469,7 +1469,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER NOT NULL AUTO_INCREMENT,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
)ENGINE NDB;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1326,7 +1326,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
UNIQUE KEY (ID),
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
)DEFAULT CHARACTER SET latin1 ENGINE INNODB;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2000,7 +2000,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER NOT NULL,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1986,7 +1986,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER NOT NULL,
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1543,7 +1543,7 @@ CREATE TABLE IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT (
ID INTEGER NOT NULL DEFAULT NEXTVAL('IDN_ORG_USER_INVITE_ROLE_ASSIGNMENT_SEQ'),
INVITATION_ID VARCHAR(40) NOT NULL,
ROLE_ID VARCHAR(255) NOT NULL,
PRIMARY KEY (INVITATION_ID, APPLICATION_ID, ROLE_ID),
PRIMARY KEY (INVITATION_ID, ROLE_ID),
FOREIGN KEY (INVITATION_ID) REFERENCES IDN_ORG_USER_INVITATION(INVITATION_ID) ON DELETE CASCADE
);

Expand Down

0 comments on commit 63a404e

Please sign in to comment.