botserver/migrations
Rodrigo Rodriguez (Pragmatismo) 72f7081acb feat(schedule): optimize set_schedule with update-first approach
Changed the set_schedule function to first attempt updating existing records before inserting new ones. This improves efficiency by avoiding unnecessary insert conflicts and subsequent updates. The logic now:
1. Tries to update matching existing schedule first
2. Only performs insert if no matching record was found
3. Maintains same functionality but with better performance
2025-11-05 09:05:25 -03:00
..
6.0.0.sql feat: add bot_id to system_automations and enhance schedule handling 2025-11-02 19:32:25 -03:00
6.0.1.sql
6.0.2.sql
6.0.3.sql Add new KB and session association tables 2025-10-20 19:49:54 -03:00
6.0.4.sql feat(config): remove default server config and update database credentials 2025-10-30 17:32:21 -03:00
6.0.5.sql feat(db): add bot_id column, constraints, enforce DATABASE_URL 2025-11-05 08:47:28 -03:00
6.0.6.sql feat(schedule): optimize set_schedule with update-first approach 2025-11-05 09:05:25 -03:00
6.0.7.sql feat(schedule): optimize set_schedule with update-first approach 2025-11-05 09:05:25 -03:00