mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
9d5cf57373
1. Fix #5102 by checking the existence of name when creating/editing replication rule 2. Add unique constraint to the name of replication policy and target 3. Fix bugs of testing library Signed-off-by: Wenkai Yin <yinw@vmware.com>
16 lines
500 B
SQL
16 lines
500 B
SQL
ALTER TABLE properties ALTER COLUMN v TYPE varchar(1024);
|
|
DELETE FROM properties where k='scan_all_policy';
|
|
|
|
create table job_log (
|
|
log_id SERIAL NOT NULL,
|
|
job_uuid varchar (64) NOT NULL,
|
|
creation_time timestamp default CURRENT_TIMESTAMP,
|
|
content text,
|
|
primary key (log_id)
|
|
);
|
|
|
|
CREATE UNIQUE INDEX job_log_uuid ON job_log (job_uuid);
|
|
|
|
ALTER TABLE replication_policy ADD CONSTRAINT unique_policy_name UNIQUE (name);
|
|
ALTER TABLE replication_target ADD CONSTRAINT unique_target_name UNIQUE (name);
|