Skip to content

Commit

Permalink
Add: Composite Primary Key
Browse files Browse the repository at this point in the history
  • Loading branch information
BLasan committed Sep 20, 2024
1 parent ee05101 commit 673363b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1529,7 +1529,7 @@ CREATE TABLE IF NOT EXISTS AM_API_SEQUENCE_BACKEND (
SEQUENCE LONGBLOB NOT NULL,
NAME VARCHAR(256) NOT NULL,
TYPE VARCHAR(120) NOT NULL,
PRIMARY KEY (ID),
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
)ENGINE INNODB;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3460,7 +3460,7 @@ CREATE TABLE AM_API_SEQUENCE_BACKEND (
SEQUENCE BLOB NOT NULL,
NAME VARCHAR2(256) NOT NULL,
TYPE VARCHAR2(120) NOT NULL,
PRIMARY KEY (ID),
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2476,7 +2476,7 @@ CREATE TABLE AM_API_SEQUENCE_BACKEND (
SEQUENCE BLOB NOT NULL,
NAME VARCHAR2(256) NOT NULL,
TYPE VARCHAR2(120) NOT NULL,
PRIMARY KEY (ID),
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2466,7 +2466,7 @@ CREATE TABLE AM_API_SEQUENCE_BACKEND (
SEQUENCE BLOB NOT NULL,
NAME VARCHAR2(256) NOT NULL,
TYPE VARCHAR2(120) NOT NULL,
PRIMARY KEY (ID),
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
)
/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1865,7 +1865,7 @@ CREATE TABLE IF NOT EXISTS AM_API_SEQUENCE_BACKEND (
SEQUENCE BYTEA NOT NULL,
NAME VARCHAR(256) NOT NULL,
TYPE VARCHAR(120) NOT NULL,
PRIMARY KEY (ID),
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
);

Expand Down

0 comments on commit 673363b

Please sign in to comment.