From 6987825ffd81531b11fffdf5120e52337a2c46c3 Mon Sep 17 00:00:00 2001 From: wang yan Date: Thu, 1 Aug 2019 15:26:21 +0800 Subject: [PATCH] Delete the nono scan all schedule in migration Signed-off-by: wang yan --- make/migrations/postgresql/0005_1.8.2_schema.up.sql | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/make/migrations/postgresql/0005_1.8.2_schema.up.sql b/make/migrations/postgresql/0005_1.8.2_schema.up.sql index 0bf72529f..45f8f722d 100644 --- a/make/migrations/postgresql/0005_1.8.2_schema.up.sql +++ b/make/migrations/postgresql/0005_1.8.2_schema.up.sql @@ -23,3 +23,8 @@ END $$; ALTER TABLE user_group ADD CONSTRAINT unique_group_name UNIQUE (group_name); + +/* +Fix issue https://github.com/goharbor/harbor/issues/8526, delete the none scan_all schedule. + */ +UPDATE admin_job SET deleted='true' WHERE cron_str='{"type":"none"}';