Skip to content

Commit 1f955df

Browse files
committed
test: check if oriole is available and if so then enable
1 parent 2b3df4b commit 1f955df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

migrations/tests/test.sql

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ BEGIN;
55

66
CREATE EXTENSION IF NOT EXISTS pgtap;
77

8+
-- Check and create OrioleDB if available
9+
DO $$
10+
BEGIN
11+
IF EXISTS (SELECT 1 FROM pg_available_extensions WHERE name = 'orioledb') THEN
12+
IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname = 'orioledb') THEN
13+
CREATE EXTENSION orioledb;
14+
END IF;
15+
END IF;
16+
END $$;
17+
818
SELECT no_plan();
919

1020
\ir fixtures.sql

0 commit comments

Comments
 (0)