Skip to content

Commit 2b3df4b

Browse files
committed
fix: silent skip if oriole not in the install
1 parent 5af2b29 commit 2b3df4b

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
-- migrate:up
21
do $$
32
begin
4-
if not exists (select 1 from pg_extension where extname = 'orioledb') then
5-
create extension if not exists orioledb;
3+
if exists (select 1 from pg_available_extensions where name = 'orioledb') then
4+
if not exists (select 1 from pg_extension where extname = 'orioledb') then
5+
create extension if not exists orioledb;
6+
end if;
67
end if;
78
end $$;
89

910
-- migrate:down
10-
drop extension if exists orioledb;
11+
drop extension if exists orioledb;

0 commit comments

Comments
 (0)