From da0893fdb5038b8f3489c21243ce140a1659dc74 Mon Sep 17 00:00:00 2001 From: Karen Etheridge Date: Thu, 8 Aug 2019 10:26:55 -0700 Subject: [PATCH] migration 102 has moved forward to v2.33.3 as migration 93 This makes initial v3 deployments easier, by not having to install the uuid-ossp extension only to drop it immediately. This extension is not present in sql/schema.sql, as if someone (or a migration) had already removed it. --- sql/migrations/0100-assert-safe-for-v3.sql | 2 +- sql/migrations/0102-drop-uuid-ossp.sql | 11 ----------- 2 files changed, 1 insertion(+), 12 deletions(-) delete mode 100644 sql/migrations/0102-drop-uuid-ossp.sql diff --git a/sql/migrations/0100-assert-safe-for-v3.sql b/sql/migrations/0100-assert-safe-for-v3.sql index d0beaac50..470b13330 100644 --- a/sql/migrations/0100-assert-safe-for-v3.sql +++ b/sql/migrations/0100-assert-safe-for-v3.sql @@ -1,5 +1,5 @@ do $$ begin -assert (select max(id) from migration) = 92, 'not all v2 migrations have been run; cannot proceed with v3 upgrade'; +assert (select max(id) from migration) = 93, 'not all v2 migrations have been run; cannot proceed with v3 upgrade'; end; $$; SELECT run_migration(100, ''); diff --git a/sql/migrations/0102-drop-uuid-ossp.sql b/sql/migrations/0102-drop-uuid-ossp.sql deleted file mode 100644 index 5886c0a21..000000000 --- a/sql/migrations/0102-drop-uuid-ossp.sql +++ /dev/null @@ -1,11 +0,0 @@ -SELECT run_migration(102, $$ - - alter table validation alter column id set default gen_random_uuid(); - alter table validation_plan alter column id set default gen_random_uuid(); - alter table validation_result alter column id set default gen_random_uuid(); - alter table validation_state alter column id set default gen_random_uuid(); - alter table workspace alter column id set default gen_random_uuid(); - - drop extension "uuid-ossp"; - -$$);