fix: ensure the role_id of role is correct (#13476)

Closes #13317

Signed-off-by: He Weiwei <hweiwei@vmware.com>
This commit is contained in:
He Weiwei 2020-11-12 15:34:04 +08:00 committed by GitHub
parent 76f1afbe0d
commit 83c07d6680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,10 @@
/*
Fixes issue https://github.com/goharbor/harbor/issues/13317
Ensure the role_id of maintainer is 4 and the role_id of limisted guest is 5
*/
UPDATE role SET role_id=4 WHERE name='maintainer' AND role_id!=4;
UPDATE role SET role_id=5 WHERE name='limitedGuest' AND role_id!=5;
ALTER TABLE schedule ADD COLUMN IF NOT EXISTS cron_type varchar(64);
DO $$