From cdfc860bf9554e1cee61f937179bc8c31a7b72f1 Mon Sep 17 00:00:00 2001 From: Thomas Date: Fri, 9 Jun 2023 11:32:34 +0200 Subject: [PATCH] Adjust mobile_provider_id if location is provided --- install/postgresql/trigger/functions/trigger_test.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/install/postgresql/trigger/functions/trigger_test.sql b/install/postgresql/trigger/functions/trigger_test.sql index b3294f9..8136197 100644 --- a/install/postgresql/trigger/functions/trigger_test.sql +++ b/install/postgresql/trigger/functions/trigger_test.sql @@ -106,6 +106,7 @@ begin OR NEW.network_sim_operator IS DISTINCT FROM OLD.network_sim_operator OR NEW.network_operator IS DISTINCT FROM OLD.network_operator OR NEW.time IS DISTINCT FROM OLD.time + OR NEW.location IS DISTINCT FROM OLD.location ) THEN IF (NEW.network_sim_operator IS NULL OR NEW.network_operator IS NULL) THEN