From 713046b04328edd10c06711a39092f739298c6c6 Mon Sep 17 00:00:00 2001 From: Kerwin <37063904+zhuangchong@users.noreply.github.com> Date: Tue, 15 Nov 2022 17:26:41 +0800 Subject: [PATCH] Modify the table t_ds_worker_group to add a description field in the postgresql upgrade script (#12883) --- .../upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql index fd465802ec..b67b1247b9 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.1.1_schema/postgresql/dolphinscheduler_ddl.sql @@ -30,5 +30,4 @@ END IF; END $$; --- add column -ALTER TABLE t_ds_task_group alter COLUMN description type varchar(255); - +ALTER TABLE t_ds_worker_group ADD COLUMN IF NOT EXISTS description varchar(255) DEFAULT NULL;