From ec54fd8477c7e6a13c49662fbbd6b9f3dd0f81d0 Mon Sep 17 00:00:00 2001 From: marcellmueller Date: Mon, 13 Jan 2025 09:33:09 -0800 Subject: [PATCH] chore: fix fta schema postgis extention error --- migrations/sql/V1.0.0__init.sql | 5 ++--- migrations/sql/V1.0.1__rst_db.sql | 8 ++------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/migrations/sql/V1.0.0__init.sql b/migrations/sql/V1.0.0__init.sql index c175bef5..0173644d 100644 --- a/migrations/sql/V1.0.0__init.sql +++ b/migrations/sql/V1.0.0__init.sql @@ -1,10 +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; +create extension if not exists "postgis"; -set search_path to rst; +set search_path to rst, public; 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 66275c1c..a613f70a 100644 --- a/migrations/sql/V1.0.1__rst_db.sql +++ b/migrations/sql/V1.0.1__rst_db.sql @@ -1,8 +1,4 @@ -create schema if not exists fta; - -create extension if not exists "postgis" with schema fta; - -set search_path to fta; +set search_path to fta, public; create table recreation_project ( forest_file_id varchar(10) primary key, @@ -1217,4 +1213,4 @@ comment on column recreation_user_days_code.expiry_date is 'Date the code expire comment on column recreation_user_days_code.update_timestamp is 'The date and time the value was last modified.'; -- Set the search path back to default -set search_path to rst; +set search_path to rst, public;