fix(tests): remove geom column from test fixture (no PostGIS in test DB)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt Johnson 2026-05-17 17:40:24 +00:00
commit a25b4af4e8

View file

@ -100,6 +100,7 @@ async def pre_migration_events_table(db_conn: asyncpg.Connection) -> None:
await db_conn.execute("DROP TABLE IF EXISTS public.events CASCADE") await db_conn.execute("DROP TABLE IF EXISTS public.events CASCADE")
# Create events table with PRE-MIGRATION schema (has source, no adapter) # Create events table with PRE-MIGRATION schema (has source, no adapter)
# Note: geom column omitted since test DB lacks PostGIS extension
await db_conn.execute(""" await db_conn.execute("""
CREATE TABLE public.events ( CREATE TABLE public.events (
id TEXT NOT NULL, id TEXT NOT NULL,
@ -108,7 +109,6 @@ async def pre_migration_events_table(db_conn: asyncpg.Connection) -> None:
time TIMESTAMPTZ NOT NULL, time TIMESTAMPTZ NOT NULL,
expires TIMESTAMPTZ, expires TIMESTAMPTZ,
severity SMALLINT, severity SMALLINT,
geom GEOMETRY(Geometry, 4326),
regions TEXT[], regions TEXT[],
primary_region TEXT, primary_region TEXT,
payload JSONB NOT NULL, payload JSONB NOT NULL,