From 3a04d7d96a68ac3d4f541823fef921a92118fe44 Mon Sep 17 00:00:00 2001 From: Arunan Date: Mon, 20 Nov 2023 13:39:10 +0530 Subject: [PATCH] Update cluster mssql script to avoid warnings --- .../src/dbscripts/mssql/mssql_cluster.sql | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/distribution/src/dbscripts/mssql/mssql_cluster.sql b/distribution/src/dbscripts/mssql/mssql_cluster.sql index 2ec6d7d1d8..b8c304ba4f 100644 --- a/distribution/src/dbscripts/mssql/mssql_cluster.sql +++ b/distribution/src/dbscripts/mssql/mssql_cluster.sql @@ -1,15 +1,15 @@ IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[LEADER_STATUS_TABLE]') AND TYPE IN (N'U')) CREATE TABLE LEADER_STATUS_TABLE ( - GROUP_ID VARCHAR (512) NOT NULL, - NODE_ID VARCHAR (512) NOT NULL, + GROUP_ID VARCHAR (450) NOT NULL, + NODE_ID VARCHAR (450) NOT NULL, LAST_HEARTBEAT BIGINT NOT NULL, PRIMARY KEY (GROUP_ID) ); IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[CLUSTER_NODE_STATUS_TABLE]') AND TYPE IN (N'U')) CREATE TABLE CLUSTER_NODE_STATUS_TABLE ( - GROUP_ID VARCHAR (512) NOT NULL, - NODE_ID VARCHAR (512) NOT NULL, + GROUP_ID VARCHAR (450) NOT NULL, + NODE_ID VARCHAR (450) NOT NULL, IS_NEW_NODE INT NOT NULL, LAST_HEARTBEAT BIGINT NOT NULL, PRIMARY KEY (GROUP_ID, NODE_ID) @@ -17,23 +17,23 @@ CREATE TABLE CLUSTER_NODE_STATUS_TABLE ( IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[MEMBERSHIP_EVENT_TABLE]') AND TYPE IN (N'U')) CREATE TABLE MEMBERSHIP_EVENT_TABLE ( - GROUP_ID VARCHAR (512) NOT NULL, - NODE_ID VARCHAR (512) NOT NULL, + GROUP_ID VARCHAR (450) NOT NULL, + NODE_ID VARCHAR (450) NOT NULL, CHANGE_TYPE INT NOT NULL, - CHANGED_MEMBER_ID VARCHAR (512) NOT NULL + CHANGED_MEMBER_ID VARCHAR (450) NOT NULL ); IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[REMOVED_MEMBERS_TABLE]') AND TYPE IN (N'U')) CREATE TABLE REMOVED_MEMBERS_TABLE ( - GROUP_ID VARCHAR (512) NOT NULL, - NODE_ID VARCHAR (512) NOT NULL, - REMOVED_MEMBER_ID VARCHAR (512) NOT NULL + GROUP_ID VARCHAR (450) NOT NULL, + NODE_ID VARCHAR (450) NOT NULL, + REMOVED_MEMBER_ID VARCHAR (450) NOT NULL ); IF NOT EXISTS (SELECT * FROM SYS.OBJECTS WHERE OBJECT_ID = OBJECT_ID(N'[DBO].[COORDINATED_TASK_TABLE]') AND TYPE IN (N'U')) CREATE TABLE COORDINATED_TASK_TABLE ( TASK_NAME VARCHAR (512) NOT NULL, - DESTINED_NODE_ID VARCHAR (512), + DESTINED_NODE_ID VARCHAR (450), TASK_STATE VARCHAR (32), PRIMARY KEY (TASK_NAME) );