From c1e5db86c594165891df84abef79f81bc79fe97b Mon Sep 17 00:00:00 2001 From: Moshe Immermam Date: Sun, 17 Mar 2024 13:17:22 +0200 Subject: [PATCH] fix: migration failure --- views/006_config_views.sql | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/views/006_config_views.sql b/views/006_config_views.sql index 2612be18..2b8748b2 100644 --- a/views/006_config_views.sql +++ b/views/006_config_views.sql @@ -534,7 +534,8 @@ END; $$ LANGUAGE plpgsql; -- related configs -DROP FUNCTION IF EXISTS related_configs; +DROP FUNCTION IF EXISTS related_configs(config_id uuid, include_deleted_configs boolean); +DROP FUNCTION IF EXISTS related_configs(config_id uuid, type_filter text, include_deleted_configs boolean); CREATE FUNCTION related_configs ( config_id UUID, @@ -598,7 +599,7 @@ BEGIN LEFT JOIN config_items c on c.id = cc.config_id WHERE cc.config_id = lookup_id OR cc.config_id IN ( - SELECT related_config_ids_recursive.id + SELECT related_config_ids_recursive.id FROM related_config_ids_recursive( lookup_id, CASE