Migration 004 fix: pg_type catalog table, not pg_typname
All checks were successful
build-and-deploy / build (push) Successful in 1m37s

This commit is contained in:
Sirius DevOps 2026-08-24 21:29:25 -04:00
parent c1a19ecf06
commit 1ce3da4403

View file

@ -21,7 +21,7 @@ def upgrade() -> None:
BEGIN
IF NOT EXISTS (
SELECT 1 FROM pg_enum e
JOIN pg_typname t ON t.oid = e.enumtypid
JOIN pg_type t ON t.oid = e.enumtypid
WHERE t.typname = 'event_source_type' AND e.enumlabel = 'camera'
) THEN
ALTER TYPE event_source_type ADD VALUE 'camera';