diff --git a/docker/postgres/docker-entrypoint-initdb/init.sql b/docker/postgres/docker-entrypoint-initdb/init.sql index 371e888a0c130dfeaed9091b68d73277f37b95ea..b48ddde042f6ec4163f3ab4b8280ca630766b92d 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 d9204ba94fb2e53da21e72f9b1b0e6c612189990..b48ddde042f6ec4163f3ab4b8280ca630766b92d 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