yangyichao-mango commented on a change in pull request #3519:
URL:
https://github.com/apache/incubator-dolphinscheduler/pull/3519#discussion_r472594193
##########
File path: sql/dolphinscheduler-postgre.sql
##########
@@ -499,7 +499,8 @@ CREATE TABLE t_ds_resources (
pid int,
full_name varchar(64),
is_directory int,
- PRIMARY KEY (id)
+ PRIMARY KEY (id),
+ CONSTRAINT t_ds_resources_un UNIQUE (full_name, type)
Review comment:
Hi,
I add the CONSTRAINT and test in my local multithread env, it will show the
error like[1], not [2]. But I think this solution LGTM.
BTW, the db sql schema changes should be add in a new dir maybe
`1.3.3_schema` in `upgrade` dir[3] that should be decide by @dailidong .
[1]

[2]

[3]

----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]