From ab03d3f44bcb34d93bd23cf9304a34959d37409b Mon Sep 17 00:00:00 2001 From: Maciej Ziarkowski Date: Mon, 11 Oct 2021 14:20:58 +0200 Subject: [PATCH] Rename migrations to released --- migrations/012.community.down.sql | 13 --------- migrations/012.community.up.sql | 28 ------------------- ... => 021.building-user-attributes.down.sql} | 0 ...ql => 021.building-user-attributes.up.sql} | 0 ...munity.down.sql => 022.community.down.sql} | 0 ....community.up.sql => 022.community.up.sql} | 0 6 files changed, 41 deletions(-) delete mode 100644 migrations/012.community.down.sql delete mode 100644 migrations/012.community.up.sql rename migrations/{unreleased/0xx.building-user-attributes.down.sql => 021.building-user-attributes.down.sql} (100%) rename migrations/{unreleased/0xx.building-user-attributes.up.sql => 021.building-user-attributes.up.sql} (100%) rename migrations/{unreleased/0xx.community.down.sql => 022.community.down.sql} (100%) rename migrations/{unreleased/0xx.community.up.sql => 022.community.up.sql} (100%) diff --git a/migrations/012.community.down.sql b/migrations/012.community.down.sql deleted file mode 100644 index c3c92ed6..00000000 --- a/migrations/012.community.down.sql +++ /dev/null @@ -1,13 +0,0 @@ --- Remove community fields - --- Ownership type, enumerate type from: -ALTER TABLE buildings DROP COLUMN IF EXISTS ownership_type; - --- Ownerhsip perception, would you describe this as a community asset? --- Boolean yes / no -ALTER TABLE buildings DROP COLUMN IF EXISTS ownership_perception; - --- Historic ownership type / perception --- Has this building ever been used for community or public services activities? --- Boolean yes / no -ALTER TABLE buildings DROP COLUMN IF EXISTS ownership_historic; diff --git a/migrations/012.community.up.sql b/migrations/012.community.up.sql deleted file mode 100644 index d667affd..00000000 --- a/migrations/012.community.up.sql +++ /dev/null @@ -1,28 +0,0 @@ --- Remove community fields - --- Ownership type, enumerate type from: --- - -CREATE TYPE ownership_type -AS ENUM ('Private individual', - 'Private company', - 'Private offshore ownership', - 'Publicly owned', - 'Institutionally owned'); - -ALTER TABLE buildings - ADD COLUMN IF NOT EXISTS ownership_type ownership_type DEFAULT 'Private individual'; - --- Ownerhsip perception, would you describe this as a community asset? --- Boolean yes / no --- Below accepts t/f, yes/no, y/n, 0/1 as valid inputs all of which - -ALTER TABLE buildings - ADD COLUMN IF NOT EXISTS ownership_perception boolean DEFAULT null; - --- Historic ownership type / perception --- Has this building ever been used for community or public services activities? --- Boolean yes / no - -ALTER TABLE buildings - ADD COLUMN IF NOT EXISTS ownership_historic boolean DEFAULT null; diff --git a/migrations/unreleased/0xx.building-user-attributes.down.sql b/migrations/021.building-user-attributes.down.sql similarity index 100% rename from migrations/unreleased/0xx.building-user-attributes.down.sql rename to migrations/021.building-user-attributes.down.sql diff --git a/migrations/unreleased/0xx.building-user-attributes.up.sql b/migrations/021.building-user-attributes.up.sql similarity index 100% rename from migrations/unreleased/0xx.building-user-attributes.up.sql rename to migrations/021.building-user-attributes.up.sql diff --git a/migrations/unreleased/0xx.community.down.sql b/migrations/022.community.down.sql similarity index 100% rename from migrations/unreleased/0xx.community.down.sql rename to migrations/022.community.down.sql diff --git a/migrations/unreleased/0xx.community.up.sql b/migrations/022.community.up.sql similarity index 100% rename from migrations/unreleased/0xx.community.up.sql rename to migrations/022.community.up.sql