diff --git a/Makefile b/Makefile index 1dad5b7..851fe87 100644 --- a/Makefile +++ b/Makefile @@ -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 \ diff --git a/extension/keyhippo--1.2.0.sql b/extension/keyhippo--1.2.0.sql index 04689f1..4f98022 100644 --- a/extension/keyhippo--1.2.0.sql +++ b/extension/keyhippo--1.2.0.sql @@ -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',