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:
parent
7493c69fec
commit
b2760113af
2 changed files with 1 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -632,7 +632,6 @@ applyTheme();
|
|||
input.focus();
|
||||
});
|
||||
|
||||
floatLogo.addEventListener('click',toggleSidebar);
|
||||
themeBtn.addEventListener('click',toggleTheme);
|
||||
|
||||
document.addEventListener('click',function(e){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue