From 9ae10b0519cb8f6303a83da340d386973f6ac47e Mon Sep 17 00:00:00 2001 From: xbgmsharp Date: Sun, 3 Mar 2024 23:09:18 +0100 Subject: [PATCH] Fix migration, metadata_upsert_trigger_fn --- initdb/99_migrations_202403.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/initdb/99_migrations_202403.sql b/initdb/99_migrations_202403.sql index d64ce8e..0a07188 100644 --- a/initdb/99_migrations_202403.sql +++ b/initdb/99_migrations_202403.sql @@ -278,7 +278,7 @@ $logbook_extra_json$ LANGUAGE plpgsql; DROP FUNCTION IF EXISTS public.logbook_update_gpx_fn(); -CREATE FUNCTION metadata_upsert_trigger_fn() RETURNS trigger AS $metadata_upsert$ +CREATE OR REPLACE FUNCTION metadata_upsert_trigger_fn() RETURNS trigger AS $metadata_upsert$ DECLARE metadata_id integer; metadata_active boolean;