File tree Expand file tree Collapse file tree 2 files changed +15
-1
lines changed
dolphinscheduler-dao/src/main/resources/sql
upgrade/3.3.1_schema/postgresql Expand file tree Collapse file tree 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1311,7 +1311,7 @@ CREATE INDEX idx_sub_workflow_instance_id ON t_ds_relation_sub_workflow (sub_wor
1311
1311
-- ----------------------------
1312
1312
DROP TABLE IF EXISTS t_ds_workflow_task_lineage;
1313
1313
CREATE TABLE t_ds_workflow_task_lineage (
1314
- id int NOT NULL ,
1314
+ id SERIAL NOT NULL ,
1315
1315
workflow_definition_code bigint NOT NULL DEFAULT 0 ,
1316
1316
workflow_definition_version int NOT NULL DEFAULT 0 ,
1317
1317
task_definition_code bigint NOT NULL DEFAULT 0 ,
Original file line number Diff line number Diff line change @@ -21,3 +21,17 @@ ALTER TABLE t_ds_command DROP COLUMN test_flag;
21
21
ALTER TABLE t_ds_error_command DROP COLUMN test_flag;
22
22
ALTER TABLE t_ds_workflow_instance DROP COLUMN test_flag;
23
23
ALTER TABLE t_ds_task_instance DROP COLUMN test_flag;
24
+
25
+ ALTER TABLE t_ds_workflow_task_lineage
26
+ DROP CONSTRAINT t_ds_workflow_task_lineage_pkey;
27
+ CREATE SEQUENCE t_ds_workflow_task_lineage_id_seq ;
28
+ ALTER TABLE t_ds_workflow_task_lineage
29
+ ALTER COLUMN id TYPE integer ;
30
+ ALTER TABLE t_ds_workflow_task_lineage
31
+ ALTER COLUMN id SET DEFAULT nextval(' t_ds_workflow_task_lineage_id_seq' );
32
+ ALTER SEQUENCE t_ds_workflow_task_lineage_id_seq
33
+ OWNED BY t_ds_workflow_task_lineage .id ;
34
+ ALTER TABLE t_ds_workflow_task_lineage
35
+ ALTER COLUMN id SET NOT NULL ;
36
+ ALTER TABLE t_ds_workflow_task_lineage
37
+ ADD PRIMARY KEY (id);
You can’t perform that action at this time.
0 commit comments