Can you issue the same db command but -f migrations.sql instead?
Also, cut and paste this into BI on alert settings, just in case it's something simple
{"ai_dump":&JSON, "Image":"&ALERT_JPEG", "camera":"&CAM", "ALERT_PATH":"&ALERT_PATH", "ALERT_CLIP":"&ALERT_CLIP", "timestamp":"&ALERT_TIME"}
Pasted the string into alert settings. below is the output of the DB command. Still no bueno.
root@65dd36601b9b:/# psql -d postgres -U postgres -f /migrations.sql
psql:/migrations.sql:1: NOTICE: extension "pg_trgm" already exists, skipping
CREATE EXTENSION
psql:/migrations.sql:2: NOTICE: extension "fuzzystrmatch" already exists, skipping
CREATE EXTENSION
psql:/migrations.sql:6: NOTICE: column "priority" of relation "plate_notifications" already exists, skipping
ALTER TABLE
psql:/migrations.sql:19: NOTICE: column "camera_name" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "image_path" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "thumbnail_path" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "bi_path" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "plate_annotation" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "crop_coordinates" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "ocr_annotation" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "confidence" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "bi_zone" of relation "plate_reads" already exists, skipping
psql:/migrations.sql:19: NOTICE: column "validated" of relation "plate_reads" already exists, skipping
ALTER TABLE
psql:/migrations.sql:23: NOTICE: column "ignore" of relation "known_plates" already exists, skipping
ALTER TABLE
psql:/migrations.sql:27: NOTICE: column "occurrence_count" of relation "plates" already exists, skipping
psql:/migrations.sql:27: NOTICE: column "occurrence_count" of relation "plates" already exists, skipping
ALTER TABLE
DO
CREATE FUNCTION
DO
psql:/migrations.sql:74: NOTICE: relation "devmgmt" already exists, skipping
CREATE TABLE
INSERT 0 0
psql:/migrations.sql:80: NOTICE: column "training_last_record" of relation "devmgmt" already exists, skippingALTER TABLE
root@65dd36601b9b: