Skip to content

Commit

Permalink
Merge pull request #12693 from dakshina99/update-multidc-dbscripts-4.4.0
Browse files Browse the repository at this point in the history
Add AM_TRANSACTION_RECORDS Table to Multi-DC Scripts
  • Loading branch information
RakhithaRR authored Nov 5, 2024
2 parents 08b3dc5 + 3e4c659 commit d484f74
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2352,3 +2352,13 @@ CREATE TABLE AM_API_AI_CONFIGURATION (
FOREIGN KEY (LLM_PROVIDER_UUID) REFERENCES AM_LLM_PROVIDER(UUID)
)
/
CREATE TABLE AM_TRANSACTION_RECORDS (
ID VARCHAR(255) NOT NULL,
HOST VARCHAR2(255),
SERVER_ID VARCHAR2(255),
SERVER_TYPE VARCHAR2(20),
COUNT NUMBER NOT NULL,
RECORDED_TIME TIMESTAMP NOT NULL,
PRIMARY KEY (ID)
)
/
Original file line number Diff line number Diff line change
Expand Up @@ -2352,3 +2352,13 @@ CREATE TABLE AM_API_AI_CONFIGURATION (
FOREIGN KEY (LLM_PROVIDER_UUID) REFERENCES AM_LLM_PROVIDER(UUID)
)
/
CREATE TABLE AM_TRANSACTION_RECORDS (
ID VARCHAR(255) NOT NULL,
HOST VARCHAR2(255),
SERVER_ID VARCHAR2(255),
SERVER_TYPE VARCHAR2(20),
COUNT NUMBER NOT NULL,
RECORDED_TIME TIMESTAMP NOT NULL,
PRIMARY KEY (ID)
)
/
Original file line number Diff line number Diff line change
Expand Up @@ -2881,6 +2881,17 @@ CREATE TABLE IF NOT EXISTS AM_API_AI_CONFIGURATION (
FOREIGN KEY (LLM_PROVIDER_UUID) REFERENCES AM_LLM_PROVIDER(UUID)
);

DROP TABLE IF EXISTS AM_TRANSACTION_RECORDS;
CREATE TABLE IF NOT EXISTS AM_TRANSACTION_RECORDS (
ID VARCHAR(255) NOT NULL,
HOST VARCHAR(255),
SERVER_ID VARCHAR(255),
SERVER_TYPE VARCHAR(20),
COUNT INT NOT NULL,
RECORDED_TIME TIMESTAMP NOT NULL,
PRIMARY KEY (ID)
);

-- End of API-MGT Tables --

-- Performance indexes start --
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2745,6 +2745,16 @@ CREATE TABLE AM_API_AI_CONFIGURATION (
FOREIGN KEY (API_UUID) REFERENCES AM_API(API_UUID),
FOREIGN KEY (LLM_PROVIDER_UUID) REFERENCES AM_LLM_PROVIDER(UUID)
);
IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[AM_TRANSACTION_RECORDS]') AND TYPE IN (N'U'))
CREATE TABLE AM_TRANSACTION_RECORDS (
ID VARCHAR(255) NOT NULL,
HOST VARCHAR(255),
SERVER_ID VARCHAR(255),
SERVER_TYPE VARCHAR(20),
COUNT INT NOT NULL,
RECORDED_TIME DATETIME NOT NULL,
PRIMARY KEY (ID)
);

--Performance indexes start--

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3879,6 +3879,17 @@ CREATE TABLE AM_API_AI_CONFIGURATION (
)
/

CREATE TABLE AM_TRANSACTION_RECORDS (
ID VARCHAR(255) NOT NULL,
HOST VARCHAR2(255),
SERVER_ID VARCHAR2(255),
SERVER_TYPE VARCHAR2(20),
COUNT NUMBER NOT NULL,
RECORDED_TIME TIMESTAMP NOT NULL,
PRIMARY KEY (ID)
)
/

-- End of API-MGT Tables --

--performance indexes start--
Expand Down

0 comments on commit d484f74

Please sign in to comment.