testing the test database
Some checks failed
Deploy to Web Server flyer-crawler.projectium.com / deploy (push) Failing after 21s

This commit is contained in:
2025-11-21 19:28:16 -08:00
parent a63bb2f68c
commit e86f38fa66
3 changed files with 16 additions and 19 deletions

View File

@@ -183,6 +183,14 @@ CREATE ROLE flyer_crawler_user WITH LOGIN PASSWORD 'a_very_strong_password';
-- Create the production database and assign ownership to the new user
CREATE DATABASE "flyer-crawler-prod" WITH OWNER = flyer_crawler_user;
-- Connect to the new database to install extensions within it.
\c "flyer-crawler-prod"
-- Install the required extensions as a superuser. This only needs to be done once.
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Exit the psql shell
Step 3: Apply the Master Schema
@@ -247,6 +255,14 @@ CREATE DATABASE "flyer-crawler-test" WITH OWNER = flyer_crawler_user;
-- Connect to the newly created test database
\c "flyer-crawler-test"
-- Install the required extensions as a superuser. This only needs to be done once.
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp";
-- Connect to the newly created test database
\c "flyer-crawler-test"
-- Grant ownership of the public schema within this database to your application user.
-- This is CRITICAL for allowing the test runner to drop and recreate the schema.
ALTER SCHEMA public OWNER TO flyer_crawler_user;

View File

@@ -1,13 +1,4 @@
-- ============================================================================
-- PART 1: EXTENSIONS
-- ============================================================================
-- Enable necessary PostgreSQL extensions.
-- postgis: For storing and querying geographic data (store locations).
-- pg_trgm: For trigram-based fuzzy string matching (improving item searches).
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- For generating UUIDs
-- ============================================================================
-- PART 2: TABLES
-- ============================================================================

View File

@@ -15,16 +15,6 @@
-- For a fresh setup, run this entire script. To reset the environment,
-- first run 'delete_all_tables.sql.txt' and then run this script.
-- ============================================================================
-- PART 1: EXTENSIONS
-- ============================================================================
-- Enable necessary PostgreSQL extensions.
-- postgis: For storing and querying geographic data (store locations).
-- pg_trgm: For trigram-based fuzzy string matching (improving item searches).
CREATE EXTENSION IF NOT EXISTS postgis;
CREATE EXTENSION IF NOT EXISTS pg_trgm;
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- For generating UUIDs
-- ============================================================================
-- PART 2: TABLES
-- ============================================================================