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 Set default email to null if not provided 2019-08-19 15:20:44 +08:00
0002_1.7.0_schema.up.sql Update the upgrade sql to rename the duplicate records 2019-01-04 14:55:33 +08:00
0003_add_replication_op_uuid.up.sql Add op uuid to image replication 2018-10-21 23:55:57 +08:00
0004_1.8.0_schema.up.sql Fix migrator scan all schedule from v1.7.0 (#7763) 2019-05-10 17:08:52 +08:00
0005_1.8.2_schema.up.sql Delete the nono scan all schedule in migration 2019-08-01 16:59:13 +08:00
0010_1.9.0_schema.up.sql Move db change to new migration file 2019-09-25 15:57:03 +08:00
0011_1.9.1_schema.up.sql Move db change to new migration file 2019-09-25 15:57:03 +08:00
0012_1.9.4_schema.up.sql Support pinning to authproxy server's cert 2019-12-03 07:31:26 +08:00
0015_1.10.0_schema.up.sql Avoid to create duplicated immutable tag rules in the same project 2019-11-15 14:46:23 +08:00
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