Skip to content

Commit 4b56a76

Browse files
DDL changes for nrt_page_case_answer (#235)
Co-authored-by: Varshinee <[email protected]>
1 parent 3e46c64 commit 4b56a76

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

db/upgrade/rdb_modern/tables/014-create_nrt_page_case_answer.sql

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE TABLE dbo.nrt_page_case_answer
44
act_uid bigint NOT NULL,
55
nbs_case_answer_uid bigint NOT NULL,
66
nbs_ui_metadata_uid bigint NOT NULL,
7-
nbs_rdb_metadata_uid bigint NOT NULL,
7+
nbs_rdb_metadata_uid bigint NULL,
88
nbs_question_uid bigint NOT NULL,
99
rdb_table_nm varchar(30) NULL,
1010
rdb_column_nm varchar(30) NULL,

liquibase-service/src/main/resources/db/rdb_modern/tables/014-create_nrt_page_case_answer-001.sql

+6
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ IF EXISTS (SELECT 1 FROM sysobjects WHERE name = 'nrt_page_case_answer' and xtyp
6262
BEGIN
6363
ALTER TABLE dbo.nrt_page_case_answer
6464
ADD ldf_status_cd varchar(20);
65+
END;
66+
67+
68+
IF NOT EXISTS(SELECT 1 FROM sys.columns WHERE Name = N'nbs_rdb_metadata_uid' AND Object_ID = Object_ID(N'nrt_page_case_answer'))
69+
BEGIN
70+
ALTER TABLE dbo.nrt_page_case_answer ALTER COLUMN nbs_rdb_metadata_uid bigint NULL;
6571
END;
6672

6773
END;

0 commit comments

Comments
 (0)