Skip to content

Commit

Permalink
Merge pull request #12636 from RakhithaRR/sequence-mssql
Browse files Browse the repository at this point in the history
Add missing SQL changes to MSSQL scripts
  • Loading branch information
RakhithaRR authored Oct 6, 2024
2 parents 3ced9a6 + 1d922bd commit 9cc78af
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1740,6 +1740,18 @@ CREATE TABLE AM_API (
UNIQUE (API_UUID)
);

IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[AM_API_SEQUENCE_BACKEND]') AND TYPE IN (N'U'))

CREATE TABLE AM_API_SEQUENCE_BACKEND (
ID VARCHAR(60) NOT NULL,
API_UUID VARCHAR(256) NOT NULL,
REVISION_UUID VARCHAR(256) DEFAULT '0',
SEQUENCE VARBINARY(MAX) NOT NULL,
NAME VARCHAR(256) NOT NULL,
TYPE VARCHAR(120) NOT NULL,
PRIMARY KEY (ID,API_UUID,REVISION_UUID,TYPE),
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID) ON DELETE CASCADE
);


IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[AM_GRAPHQL_COMPLEXITY]') AND TYPE IN (N'U'))
Expand Down

0 comments on commit 9cc78af

Please sign in to comment.