Browse Source

Update dolphinscheduler_ddl.sql fix alert t_ds_user add time_zone is not correct (#11795)

3.1.0-release
fuchanghai 2 years ago committed by caishunfeng
parent
commit
f1de1707d5
  1. 4
      dolphinscheduler-dao/src/main/resources/sql/upgrade/3.0.0_schema/mysql/dolphinscheduler_ddl.sql

4
dolphinscheduler-dao/src/main/resources/sql/upgrade/3.0.0_schema/mysql/dolphinscheduler_ddl.sql

@ -407,7 +407,7 @@ BEGIN
IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME='t_ds_user'
AND TABLE_SCHEMA=(SELECT DATABASE())
AND COLUMN_NAME='t_ds_user')
AND COLUMN_NAME='time_zone')
THEN
ALTER TABLE `t_ds_user` ADD COLUMN `time_zone` varchar(32) DEFAULT NULL COMMENT 'time zone';
END IF;
@ -751,4 +751,4 @@ CREATE TABLE `t_ds_task_group_queue` (
`create_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
`update_time` timestamp NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY( `id` )
)ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;
)ENGINE= INNODB AUTO_INCREMENT= 1 DEFAULT CHARSET= utf8;

Loading…
Cancel
Save