From 60938bc6062f3e09d8727e965261553f174e9557 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Wed, 5 Nov 2025 15:29:01 -0300 Subject: [PATCH] fix(migrations, ui): remove redundant constraint check and logo click handler Removed `IF NOT EXISTS` from the unique constraint in `system_automations` to ensure proper enforcement, and deleted the unused `floatLogo` click event listener to clean up UI behavior. --- migrations/6.0.5.sql | 2 +- web/html/index.html | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/migrations/6.0.5.sql b/migrations/6.0.5.sql index eceac51b9..6be7e3bf8 100644 --- a/migrations/6.0.5.sql +++ b/migrations/6.0.5.sql @@ -26,7 +26,7 @@ ON public.system_automations (bot_id); ALTER TABLE public.system_automations -ADD CONSTRAINT IF NOT EXISTS system_automations_bot_kind_param_unique +ADD CONSTRAINT system_automations_bot_kind_param_unique UNIQUE (bot_id, kind, param); -- Migration 6.0.10: Add unique constraint for system_automations upsert diff --git a/web/html/index.html b/web/html/index.html index 4849cae8f..7cc45c914 100644 --- a/web/html/index.html +++ b/web/html/index.html @@ -632,7 +632,6 @@ applyTheme(); input.focus(); }); -floatLogo.addEventListener('click',toggleSidebar); themeBtn.addEventListener('click',toggleTheme); document.addEventListener('click',function(e){