|
|
|
@ -567,6 +567,8 @@ CREATE TABLE t_ds_project (
|
|
|
|
|
) ; |
|
|
|
|
|
|
|
|
|
create index user_id_index on t_ds_project (user_id); |
|
|
|
|
CREATE UNIQUE INDEX unique_name on t_ds_project (name); |
|
|
|
|
CREATE UNIQUE INDEX unique_code on t_ds_project (code); |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_queue |
|
|
|
@ -581,7 +583,8 @@ CREATE TABLE t_ds_queue (
|
|
|
|
|
update_time timestamp DEFAULT NULL , |
|
|
|
|
PRIMARY KEY (id) |
|
|
|
|
); |
|
|
|
|
|
|
|
|
|
-- add unique key to t_ds_queue |
|
|
|
|
CREATE UNIQUE INDEX unique_queue_name on t_ds_queue (queue_name); |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_relation_datasource_user |
|
|
|
@ -597,7 +600,6 @@ CREATE TABLE t_ds_relation_datasource_user (
|
|
|
|
|
update_time timestamp DEFAULT NULL , |
|
|
|
|
PRIMARY KEY (id) |
|
|
|
|
) ; |
|
|
|
|
; |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_relation_process_instance |
|
|
|
@ -779,6 +781,8 @@ CREATE TABLE t_ds_tenant (
|
|
|
|
|
update_time timestamp DEFAULT NULL , |
|
|
|
|
PRIMARY KEY (id) |
|
|
|
|
) ; |
|
|
|
|
-- add unique key to t_ds_tenant |
|
|
|
|
CREATE UNIQUE INDEX unique_tenant_code on t_ds_tenant (tenant_code); |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_udfs |
|
|
|
@ -800,6 +804,8 @@ CREATE TABLE t_ds_udfs (
|
|
|
|
|
update_time timestamp NOT NULL , |
|
|
|
|
PRIMARY KEY (id) |
|
|
|
|
) ; |
|
|
|
|
-- add unique key to t_ds_udfs |
|
|
|
|
CREATE UNIQUE INDEX unique_func_name on t_ds_udfs (func_name); |
|
|
|
|
|
|
|
|
|
-- |
|
|
|
|
-- Table structure for table t_ds_user |
|
|
|
@ -959,7 +965,6 @@ DROP SEQUENCE IF EXISTS t_ds_worker_server_id_sequence;
|
|
|
|
|
CREATE SEQUENCE t_ds_worker_server_id_sequence; |
|
|
|
|
ALTER TABLE t_ds_worker_server ALTER COLUMN id SET DEFAULT NEXTVAL('t_ds_worker_server_id_sequence'); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-- Records of t_ds_user?user : admin , password : dolphinscheduler123 |
|
|
|
|
INSERT INTO t_ds_user(user_name, user_password, user_type, email, phone, tenant_id, state, create_time, update_time, time_zone) |
|
|
|
|
VALUES ('admin', '7ad2410b2f4c074479a8937a28a22b8f', '0', 'xxx@qq.com', '', '0', 1, '2018-03-27 15:48:50', '2018-10-24 17:40:22', 'Asia/Shanghai'); |
|
|
|
|