mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-22 10:15:35 +01:00
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:
parent
360334991e
commit
2bc11200d6
@ -186,5 +186,3 @@ create table notification_policy (
|
|||||||
ALTER TABLE replication_task ADD COLUMN status_revision int DEFAULT 0;
|
ALTER TABLE replication_task ADD COLUMN status_revision int DEFAULT 0;
|
||||||
DELETE FROM project_metadata WHERE deleted = TRUE;
|
DELETE FROM project_metadata WHERE deleted = TRUE;
|
||||||
ALTER TABLE project_metadata DROP COLUMN deleted;
|
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';
|
|
||||||
|
2
make/migrations/postgresql/0011_1.9.1_schema.up.sql
Normal file
2
make/migrations/postgresql/0011_1.9.1_schema.up.sql
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
ALTER TABLE harbor_user ADD COLUMN password_version varchar(16) Default 'sha256';
|
||||||
|
UPDATE harbor_user SET password_version = 'sha1';
|
Loading…
Reference in New Issue
Block a user