From 2bc11200d62fa951247ebd196be70173da403959 Mon Sep 17 00:00:00 2001 From: DQ Date: Tue, 24 Sep 2019 20:58:56 +0800 Subject: [PATCH] Move db change to new migration file DB should move to new migration file cause 1.9 is already released Signed-off-by: DQ --- make/migrations/postgresql/0010_1.9.0_schema.up.sql | 2 -- make/migrations/postgresql/0011_1.9.1_schema.up.sql | 2 ++ .../{0011_1.10.0_schema.up.sql => 0012_1.10.0_schema.up.sql} | 0 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 make/migrations/postgresql/0011_1.9.1_schema.up.sql rename make/migrations/postgresql/{0011_1.10.0_schema.up.sql => 0012_1.10.0_schema.up.sql} (100%) diff --git a/make/migrations/postgresql/0010_1.9.0_schema.up.sql b/make/migrations/postgresql/0010_1.9.0_schema.up.sql index 709f529cf..767e0e669 100644 --- a/make/migrations/postgresql/0010_1.9.0_schema.up.sql +++ b/make/migrations/postgresql/0010_1.9.0_schema.up.sql @@ -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'; diff --git a/make/migrations/postgresql/0011_1.9.1_schema.up.sql b/make/migrations/postgresql/0011_1.9.1_schema.up.sql new file mode 100644 index 000000000..4943b237d --- /dev/null +++ b/make/migrations/postgresql/0011_1.9.1_schema.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE harbor_user ADD COLUMN password_version varchar(16) Default 'sha256'; +UPDATE harbor_user SET password_version = 'sha1'; \ No newline at end of file diff --git a/make/migrations/postgresql/0011_1.10.0_schema.up.sql b/make/migrations/postgresql/0012_1.10.0_schema.up.sql similarity index 100% rename from make/migrations/postgresql/0011_1.10.0_schema.up.sql rename to make/migrations/postgresql/0012_1.10.0_schema.up.sql