mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
43df3bf8a4
1. Add upgrade sql file introduced in 2.1.4 2. Minor improvement for task/execution to cover corner cases Signed-off-by: Wenkai Yin <yinw@vmware.com>
9 lines
543 B
SQL
9 lines
543 B
SQL
/*
|
|
When upgrading from 2.0 to 2.1, the status and revision of retention schedule execution isn't migrated, correct them here.
|
|
As v2.2.0 isn't usable because of several serious bugs, we won't support upgrade from 2.1.4 to 2.2.0 anymore. After we add the
|
|
sql file here, users will get error when upgrading from 2.1.4 to 2.2.0 because of this sql file doesn't exist on 2.2.0
|
|
*/
|
|
UPDATE execution
|
|
SET revision=0, status=task.status
|
|
FROM task
|
|
WHERE execution.id=task.execution_id AND execution.vendor_type='SCHEDULER' AND execution.revision IS NULL; |