From c2711f501fa76cda0fadb0999a569b63b2a5ba8f Mon Sep 17 00:00:00 2001 From: Aaron Wang Date: Fri, 21 Apr 2023 15:14:44 +0800 Subject: [PATCH] [Fix-13977][SQL] 3.2.0_schema mysql ddl sql error (#13979) --- .../sql/upgrade/3.2.0_schema/mysql/dolphinscheduler_ddl.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/mysql/dolphinscheduler_ddl.sql b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/mysql/dolphinscheduler_ddl.sql index 76662e4280..b4d0ca2950 100644 --- a/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/mysql/dolphinscheduler_ddl.sql +++ b/dolphinscheduler-dao/src/main/resources/sql/upgrade/3.2.0_schema/mysql/dolphinscheduler_ddl.sql @@ -398,14 +398,14 @@ END IF; AND TABLE_SCHEMA=(SELECT DATABASE()) AND COLUMN_NAME ='tenant_code') THEN -ALTER TABLE t_ds_task_instance ADD `tenant_code` varchar(64) DEFAULT 'default' COMMENT 'tenant code'; +ALTER TABLE t_ds_error_command ADD `tenant_code` varchar(64) DEFAULT 'default' COMMENT 'tenant code'; END IF; IF NOT EXISTS (SELECT 1 FROM information_schema.COLUMNS WHERE TABLE_NAME='t_ds_schedules' AND TABLE_SCHEMA=(SELECT DATABASE()) AND COLUMN_NAME ='tenant_code') THEN -ALTER TABLE t_ds_task_instance ADD `tenant_code` varchar(64) DEFAULT 'default' COMMENT 'tenant code'; +ALTER TABLE t_ds_schedules ADD `tenant_code` varchar(64) DEFAULT 'default' COMMENT 'tenant code'; END IF; END; d//