Skip to content

Commit 4c9e983

Browse files
committed
chore: rollback extensions from pgtap tests
1 parent bdb2ece commit 4c9e983

29 files changed

+60
-3
lines changed

migrations/docker-compose.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ version: "3.8"
66

77
services:
88
db:
9-
image: supabase/postgres:15.1.0.11
9+
image: supabase/postgres:15.1.0.42
1010
restart: "no"
1111
ports:
1212
- 5478:5432
@@ -30,7 +30,8 @@ services:
3030
condition: service_healthy
3131
environment:
3232
PGHOST: db
33-
PGUSER: postgres
33+
PGUSER: supabase_admin
34+
PGDATABASE: postgres
3435
PGPASSWORD: ${POSTGRES_PASSWORD}
3536
volumes:
3637
- ./tests:/tests
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists postgis_sfcgal with schema "extensions" cascade;
3+
ROLLBACK;
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
create extension if not exists pgrouting with schema "extensions";
1+
BEGIN;
2+
create extension if not exists pgrouting with schema "extensions" cascade;
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists pgtap with schema "extensions";
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists pg_cron with schema "extensions";
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists pgaudit with schema "extensions";
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists pgjwt with schema "extensions" cascade;
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists http with schema "extensions";
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
create extension if not exists plpgsql_check with schema "extensions";
3+
ROLLBACK;
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1+
BEGIN;
12
alter role postgres set session_preload_libraries = 'safeupdate';
3+
ROLLBACK;

0 commit comments

Comments
 (0)