From 3b56ae2f82c9193c0b5b278cdb937f060aa7ffa9 Mon Sep 17 00:00:00 2001 From: qiaozhanwei Date: Thu, 9 Apr 2020 22:43:04 +0800 Subject: [PATCH] init.sql modify --- docker/postgres/docker-entrypoint-initdb/init.sql | 9 +++------ sql/dolphinscheduler-postgre.sql | 11 ++++------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/docker/postgres/docker-entrypoint-initdb/init.sql b/docker/postgres/docker-entrypoint-initdb/init.sql index 371e888a0c..b48ddde042 100755 --- a/docker/postgres/docker-entrypoint-initdb/init.sql +++ b/docker/postgres/docker-entrypoint-initdb/init.sql @@ -191,7 +191,7 @@ CREATE TABLE t_ds_alert ( content text , alert_type int DEFAULT NULL , alert_status int DEFAULT '0' , - log text , + ·log· text , alertgroup_id int DEFAULT NULL , receivers text , receivers_cc text , @@ -497,10 +497,10 @@ CREATE TABLE t_ds_resources ( update_time timestamp DEFAULT NULL , pid int, full_name varchar(64), - is_directory int + is_directory int, PRIMARY KEY (id) ) ; -; + -- -- Table structure for table t_ds_schedules @@ -685,9 +685,6 @@ ALTER TABLE t_ds_command ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_command_id_se DROP SEQUENCE IF EXISTS t_ds_datasource_id_sequence; CREATE SEQUENCE t_ds_datasource_id_sequence; ALTER TABLE t_ds_datasource ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_datasource_id_sequence'); -DROP SEQUENCE IF EXISTS t_ds_master_server_id_sequence; -CREATE SEQUENCE t_ds_master_server_id_sequence; -ALTER TABLE t_ds_master_server ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_master_server_id_sequence'); DROP SEQUENCE IF EXISTS t_ds_process_definition_id_sequence; CREATE SEQUENCE t_ds_process_definition_id_sequence; ALTER TABLE t_ds_process_definition ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_process_definition_id_sequence'); diff --git a/sql/dolphinscheduler-postgre.sql b/sql/dolphinscheduler-postgre.sql index d9204ba94f..b48ddde042 100644 --- a/sql/dolphinscheduler-postgre.sql +++ b/sql/dolphinscheduler-postgre.sql @@ -191,7 +191,7 @@ CREATE TABLE t_ds_alert ( content text , alert_type int DEFAULT NULL , alert_status int DEFAULT '0' , - log text , + ·log· text , alertgroup_id int DEFAULT NULL , receivers text , receivers_cc text , @@ -497,10 +497,10 @@ CREATE TABLE t_ds_resources ( update_time timestamp DEFAULT NULL , pid int, full_name varchar(64), - is_directory int + is_directory int, PRIMARY KEY (id) ) ; -; + -- -- Table structure for table t_ds_schedules @@ -685,9 +685,6 @@ ALTER TABLE t_ds_command ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_command_id_se DROP SEQUENCE IF EXISTS t_ds_datasource_id_sequence; CREATE SEQUENCE t_ds_datasource_id_sequence; ALTER TABLE t_ds_datasource ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_datasource_id_sequence'); -DROP SEQUENCE IF EXISTS t_ds_master_server_id_sequence; -CREATE SEQUENCE t_ds_master_server_id_sequence; -ALTER TABLE t_ds_master_server ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_master_server_id_sequence'); DROP SEQUENCE IF EXISTS t_ds_process_definition_id_sequence; CREATE SEQUENCE t_ds_process_definition_id_sequence; ALTER TABLE t_ds_process_definition ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_process_definition_id_sequence'); @@ -762,4 +759,4 @@ INSERT INTO t_ds_relation_user_alertgroup(alertgroup_id,user_id,create_time,upda INSERT INTO t_ds_queue(queue_name,queue,create_time,update_time) VALUES ('default', 'default','2018-11-29 10:22:33', '2018-11-29 10:22:33'); -- Records of t_ds_queue,default queue name : default -INSERT INTO t_ds_version(version) VALUES ('1.2.0'); \ No newline at end of file +INSERT INTO t_ds_version(version) VALUES ('2.0.0'); \ No newline at end of file