Files
flyer-crawler.projectium.com/sql/test_teardown.sql
Torben Sorensen f6094df456
Some checks are pending
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Has started running
database expansion prior to creating on server - also error cleanup, some logging - DONE now for testing hehehe
2025-11-20 20:31:40 -08:00

14 lines
630 B
SQL

-- ============================================================================
-- TEST DATABASE TEARDOWN SCRIPT
-- ============================================================================
-- Purpose:
-- This script cleans up the temporary database and user created for testing.
-- It should be run after the test suite has completed.
-- Terminate any active connections to the test database to allow it to be dropped.
SELECT pg_terminate_backend(pg_stat_activity.pid)
FROM pg_stat_activity
WHERE pg_stat_activity.datname = 'flyer-crawler-test';
DROP DATABASE IF EXISTS "flyer-crawler-test";
DROP ROLE IF EXISTS test_runner;