Skip to content

Commit

Permalink
chore: add if not exists to postgis extension
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellmueller committed Jan 14, 2025
1 parent 7b228fd commit 27d74f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions migrations/sql/V1.0.0__init.sql
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions migrations/sql/V1.0.1__rst_db.sql
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down

0 comments on commit 27d74f4

Please sign in to comment.