From 5cb5db019fa6d17414693d0c3a4d2a92e4accff4 Mon Sep 17 00:00:00 2001 From: Daniel Ponte Date: Sun, 20 Oct 2024 12:55:24 -0400 Subject: [PATCH] Fix field name --- sql/postgres/migrations/001_initial.up.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/postgres/migrations/001_initial.up.sql b/sql/postgres/migrations/001_initial.up.sql index 16175ab..1fb4ef2 100644 --- a/sql/postgres/migrations/001_initial.up.sql +++ b/sql/postgres/migrations/001_initial.up.sql @@ -79,7 +79,7 @@ BEGIN SELECT tgl.system_id, tgl.tgid, tgl.name, tgl.alpha_tag FROM talkgroups_learned tgl WHERE tgl.system_id = NEW.system AND tgl.tgid = NEW.talkgroup ) THEN INSERT INTO talkgroups_learned(system_id, tgid, name, alpha_tag) VALUES( - NEW.system, NEW.talkgroup, NEW.tg_label, NEW.alpha_tag + NEW.system, NEW.talkgroup, NEW.tg_label, NEW.tg_alpha_tag ) ON CONFLICT DO NOTHING; END IF; RETURN NEW;