Skip to content

Commit

Permalink
fix: remove nested CREATE EXTENSION statements
Browse files Browse the repository at this point in the history
  • Loading branch information
david-r-cox committed Dec 14, 2024
1 parent 714bce6 commit 100d98b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ setup-supabase:
echo "SUPABASE_SERVICE_ROLE_KEY=$$SERVICE_ROLE_KEY" >> .env.test
@echo "CREATE EXTENSION IF NOT EXISTS pgcrypto;" > create_schema.sql
@echo "CREATE EXTENSION IF NOT EXISTS pgjwt;" >> create_schema.sql
@echo "CREATE EXTENSION IF NOT EXISTS pg_cron;" >> create_schema.sql
@echo "CREATE EXTENSION IF NOT EXISTS pg_net;" >> create_schema.sql
@echo "CREATE SCHEMA IF NOT EXISTS keyhippo;" >> create_schema.sql
PGPASSWORD=$(PG_PASSWORD) psql -h $(PG_HOST) -p $(PG_PORT) -U $(PG_USER) -d $(PG_DB) -v ON_ERROR_STOP=1 -f create_schema.sql
@for file in $$(find extension/ -type f -name "keyhippo*--*.sql" | sort -V); do \
Expand Down
7 changes: 0 additions & 7 deletions extension/keyhippo--1.2.0.sql
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,6 @@ CREATE SCHEMA IF NOT EXISTS keyhippo_rbac;
-- Create Impersonation schema
CREATE SCHEMA IF NOT EXISTS keyhippo_impersonation;

-- Ensure required extensions are installed
CREATE EXTENSION IF NOT EXISTS pgcrypto;

CREATE EXTENSION IF NOT EXISTS pg_net;

CREATE EXTENSION IF NOT EXISTS pg_cron;

-- Create custom types
CREATE TYPE keyhippo.app_permission AS ENUM (
'manage_groups',
Expand Down

0 comments on commit 100d98b

Please sign in to comment.