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

This commit is contained in:
fuchanghai 2022-09-06 23:14:41 +08:00 committed by caishunfeng
parent 113dc4b5c5
commit f1de1707d5

View File

@ -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;