We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5af2b29 commit 2b3df4bCopy full SHA for 2b3df4b
migrations/db/migrations/20241031003909_create_orioledb.sql
@@ -1,10 +1,11 @@
1
--- migrate:up
2
do $$
3
begin
4
- if not exists (select 1 from pg_extension where extname = 'orioledb') then
5
- 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;
6
+ end if;
7
end if;
8
end $$;
9
10
-- migrate:down
-drop extension if exists orioledb;
11
+drop extension if exists orioledb;
0 commit comments