From 27d74f44727bbc46ba4cd52d2b0815c1960954aa Mon Sep 17 00:00:00 2001 From: marcellmueller Date: Mon, 13 Jan 2025 08:43:34 -0800 Subject: [PATCH] chore: add if not exists to postgis extension --- migrations/sql/V1.0.0__init.sql | 4 ++++ migrations/sql/V1.0.1__rst_db.sql | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/migrations/sql/V1.0.0__init.sql b/migrations/sql/V1.0.0__init.sql index cb90d353..c175bef5 100644 --- a/migrations/sql/V1.0.0__init.sql +++ b/migrations/sql/V1.0.0__init.sql @@ -1,5 +1,9 @@ +create schema if not exists fta; create schema if not exists rst; +create extension if not exists "postgis" with schema fta; +create extension if not exists "postgis" with schema rst; + set search_path to rst; create table if not exists recreation_resource diff --git a/migrations/sql/V1.0.1__rst_db.sql b/migrations/sql/V1.0.1__rst_db.sql index 7ac34fb0..66275c1c 100644 --- a/migrations/sql/V1.0.1__rst_db.sql +++ b/migrations/sql/V1.0.1__rst_db.sql @@ -1,7 +1,7 @@ -create extension if not exists "postgis"; - create schema if not exists fta; +create extension if not exists "postgis" with schema fta; + set search_path to fta; create table recreation_project (