Skip to content

Commit

Permalink
Check if extension exists before creating it (#4104)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Castaño Arteaga <tegioz@icloud.com>
  • Loading branch information
tegioz authored Oct 17, 2024
1 parent 52d3999 commit 53228a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
create extension tsm_system_rows;
create extension if not exists tsm_system_rows;

---- create above / drop below ----
2 changes: 1 addition & 1 deletion database/migrations/schema/034_partman.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
create schema partman;
create extension pg_partman schema partman;
create extension if not exists pg_partman schema partman;

do language plpgsql $$
declare
Expand Down

0 comments on commit 53228a9

Please sign in to comment.