Move db change to new migration file

DB should move to new migration file cause 1.9 is already released

Signed-off-by: DQ <dengq@vmware.com>
This commit is contained in:
DQ 2019-09-24 20:58:56 +08:00
parent 360334991e
commit 2bc11200d6
3 changed files with 2 additions and 2 deletions

View File

@ -186,5 +186,3 @@ create table notification_policy (
ALTER TABLE replication_task ADD COLUMN status_revision int DEFAULT 0;
DELETE FROM project_metadata WHERE deleted = TRUE;
ALTER TABLE project_metadata DROP COLUMN deleted;
ALTER TABLE harbor_user ADD COLUMN password_version varchar(16) Default 'sha256';
UPDATE harbor_user SET password_version = 'sha1';

View File

@ -0,0 +1,2 @@
ALTER TABLE harbor_user ADD COLUMN password_version varchar(16) Default 'sha256';
UPDATE harbor_user SET password_version = 'sha1';