ruanwenjun commented on code in PR #17357:
URL: 
https://github.com/apache/dolphinscheduler/pull/17357#discussion_r2224213658


##########
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql:
##########
@@ -1311,7 +1311,7 @@ CREATE INDEX idx_sub_workflow_instance_id ON 
t_ds_relation_sub_workflow (sub_wor
 -- ----------------------------
 DROP TABLE IF EXISTS t_ds_workflow_task_lineage;
 CREATE TABLE t_ds_workflow_task_lineage (
-    id int NOT NULL,
+    id SERIAL PRIMARY KEY NOT NULL,

Review Comment:
   ```suggestion
       id        serial      NOT NULL,
   ```



##########
dolphinscheduler-dao/src/main/resources/sql/dolphinscheduler_postgresql.sql:
##########
@@ -1320,8 +1320,7 @@ CREATE TABLE t_ds_workflow_task_lineage (
     dept_workflow_definition_code bigint NOT NULL DEFAULT 0,
     dept_task_definition_code bigint NOT NULL DEFAULT 0,
     create_time timestamp NOT NULL DEFAULT current_timestamp,
-    update_time timestamp NOT NULL DEFAULT current_timestamp,
-    PRIMARY KEY (id)
+    update_time timestamp NOT NULL DEFAULT current_timestamp

Review Comment:
   ```suggestion
       update_time timestamp NOT NULL DEFAULT current_timestamp,
       PRIMARY KEY (id)
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to