Skip to content

Commit

Permalink
test: check if oriole is available and if so then enable
Browse files Browse the repository at this point in the history
  • Loading branch information
samrose committed Nov 4, 2024
1 parent 2b3df4b commit 1f955df
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions migrations/tests/test.sql
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@ BEGIN;

CREATE EXTENSION IF NOT EXISTS pgtap;

-- Check and create OrioleDB if available
DO $$
BEGIN
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 orioledb;
END IF;
END IF;
END $$;

SELECT no_plan();

\ir fixtures.sql
Expand Down

0 comments on commit 1f955df

Please sign in to comment.