Skip to content

Commit

Permalink
fix: silent skip if oriole not in the install
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Nov 4, 2024
1 parent 5af2b29 commit 2b3df4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions migrations/db/migrations/20241031003909_create_orioledb.sql
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
-- migrate:up
do $$
begin
if not exists (select 1 from pg_extension where extname = 'orioledb') then
create extension if not exists orioledb;
if exists (select 1 from pg_available_extensions where name = 'orioledb') then
if not exists (select 1 from pg_extension where extname = 'orioledb') then
create extension if not exists orioledb;
end if;
end if;
end $$;

-- migrate:down
drop extension if exists orioledb;
drop extension if exists orioledb;

0 comments on commit 2b3df4b

Please sign in to comment.