harbor/tools/migration
wang yan 0517ecca7a Fix unable to use Notary after updating to v1.6.0
This commit is to fix the issue on notary migrations from mysql to pgsql.
1, alter sequence for the primary key of changeseed, this is missed in v1.6.0 migrator.
2, alter table owners from postgres to notarysigner and notaryserver.

Issue:
https://github.com/goharbor/harbor/issues/6465

Workaround:
https://github.com/goharbor/harbor/issues/6465#issuecomment-445162616

Impacted upgrade path:
1, Upgrade from version older then v1.6.0 with migrator:v1.6.0, and migrates the notarty DB.

No impacted upgrade path:
1, Upgrade from version older than v1.6.0 with migrator:v1.6.0, but without migrates the notarty DB.

Notes:
After merge this fix, we need to provide an new migrator with an new tag, like v1.6.1, and
deprecated the v1.6.0. For those who was impacted by migrator v1.6.0, will open an new PR to build
the workaround into the migrator and expose an specical command for hot-fix.

Signed-off-by: wang yan <wangyan@vmware.com>
2018-12-07 19:33:44 +08:00
..
cfg Update no_proxy from 'portal' to 'core' in cfg migrator (#6464) 2018-12-06 11:49:40 +08:00
db Fix unable to use Notary after updating to v1.6.0 2018-12-07 19:33:44 +08:00
docker-entrypoint.sh Enable output parameter in harbor migrator (#4561) 2018-04-02 03:04:00 -07:00
Dockerfile corrected tdnf build install command. 2018-11-29 17:55:23 +11:00
migrator.py Fix bug #4840 (#4851) 2018-05-02 09:37:35 -07:00