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.
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-11-05 15:29:01 -03:00
parent 7493c69fec
commit b2760113af
2 changed files with 1 additions and 2 deletions

View file

@ -26,7 +26,7 @@ ON public.system_automations (bot_id);
ALTER TABLE public.system_automations 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); UNIQUE (bot_id, kind, param);
-- Migration 6.0.10: Add unique constraint for system_automations upsert -- Migration 6.0.10: Add unique constraint for system_automations upsert

View file

@ -632,7 +632,6 @@ applyTheme();
input.focus(); input.focus();
}); });
floatLogo.addEventListener('click',toggleSidebar);
themeBtn.addEventListener('click',toggleTheme); themeBtn.addEventListener('click',toggleTheme);
document.addEventListener('click',function(e){ document.addEventListener('click',function(e){