mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-25 10:07:43 +01:00
Fix bug of migration sql for replication policy
Fix bug of migration sql for replication policy Signed-off-by: Wenkai Yin <yinw@vmware.com>
This commit is contained in:
parent
9ea8aade01
commit
c585f92034
@ -1,5 +1,5 @@
|
||||
ALTER TABLE replication_policy ADD COLUMN IF NOT EXISTS dest_namespace_replace_count int;
|
||||
UPDATE replication_policy SET dest_namespace_replace_count=-1 WHERE dest_namespace IS NULL;
|
||||
UPDATE replication_policy SET dest_namespace_replace_count=-1 WHERE dest_namespace IS NOT NULL;
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_artifact_push_time ON artifact (push_time);
|
||||
CREATE INDEX IF NOT EXISTS idx_tag_push_time ON tag (push_time);
|
||||
|
Loading…
Reference in New Issue
Block a user