harbor/make/migrations/postgresql
Wang Yan ad47d2f444
fix upgrade issue (#12857)
fixes #12849

1, gives a default value to blob status in the migration script, and use none to replace the empty string as
the StatusNone, that will more readable on debugging failure.

2, GC jobs marks all of blobs as StatusDelete in the mark phase, but if encounter any failure in the sweep phase,
GC job will quite and all of blobs are in StatusDelete. If user wants to execute the GC again, it will fail as the
StatusDelete cannot be marked as StatusDelete. So, add StatusDelete in the status map to make StatusDelete can be
marked as StatusDelete.

Signed-off-by: wang yan <wangyan@vmware.com>
2020-08-24 16:08:15 +08:00
..
0001_initial_schema.up.sql
0002_1.7.0_schema.up.sql
0003_add_replication_op_uuid.up.sql
0004_1.8.0_schema.up.sql
0005_1.8.2_schema.up.sql
0010_1.9.0_schema.up.sql
0011_1.9.1_schema.up.sql
0012_1.9.4_schema.up.sql
0015_1.10.0_schema.up.sql
0030_2.0.0_schema.up.sql Merge pull request #11753 from tedgxt/2.0-webhook-event-types-fix 2020-04-28 19:36:44 +08:00
0040_2.1.0_schema.up.sql fix upgrade issue (#12857) 2020-08-24 16:08:15 +08:00