2025-10-20 23:44:47 -03:00
|
|
|
-- Migration 6.0.5: Add update-summary.bas scheduled automation
|
|
|
|
|
-- Description: Creates a scheduled automation that runs every minute to update summaries
|
|
|
|
|
-- This replaces the announcements system in legacy mode
|
2025-10-21 22:43:28 -03:00
|
|
|
-- Note: Bots are now created dynamically during bootstrap based on template folders
|
2025-10-20 23:44:47 -03:00
|
|
|
|
|
|
|
|
-- Add name column to system_automations if it doesn't exist
|
|
|
|
|
ALTER TABLE public.system_automations ADD COLUMN IF NOT EXISTS name VARCHAR(255);
|
|
|
|
|
|
|
|
|
|
-- Create index on name column for faster lookups
|
|
|
|
|
CREATE INDEX IF NOT EXISTS idx_system_automations_name ON public.system_automations(name);
|