From 90769513fc08ce38bc155254ecfde449477ddf6c Mon Sep 17 00:00:00 2001 From: Ed Chalstrey Date: Fri, 22 Jul 2022 16:21:14 +0100 Subject: [PATCH] add landowner db migration --- migrations/031.landowner.down.sql | 2 ++ migrations/031.landowner.up.sql | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 migrations/031.landowner.down.sql create mode 100644 migrations/031.landowner.up.sql diff --git a/migrations/031.landowner.down.sql b/migrations/031.landowner.down.sql new file mode 100644 index 00000000..161fdad3 --- /dev/null +++ b/migrations/031.landowner.down.sql @@ -0,0 +1,2 @@ +ALTER TABLE buildings DROP COLUMN IF EXISTS landowner; +ALTER TABLE buildings DROP COLUMN IF EXISTS landowner_source_link; \ No newline at end of file diff --git a/migrations/031.landowner.up.sql b/migrations/031.landowner.up.sql new file mode 100644 index 00000000..30014d28 --- /dev/null +++ b/migrations/031.landowner.up.sql @@ -0,0 +1,2 @@ +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS landowner text[]; +ALTER TABLE buildings ADD COLUMN IF NOT EXISTS landowner_source_link text[];