botserver/migrations
Rodrigo Rodriguez (Pragmatismo) d2ee695d8b feat: add bot_id to system_automations and enhance schedule handling
- Introduced `bot_id` column in `system_automations` table (migration 6.0.0.sql) and updated the Diesel schema/model to include it.
- Adjusted migrations to remove the hard‑coded “Update Summary” automation and only create an index on the `name` column.
- Extended the `SET_SCHEDULE` keyword:
  - Added a second string argument for the script name.
  - Passed the invoking user's `bot_id` to the database layer.
  - Updated function signature to accept a full `UserSession` instead of discarding it.
- Modified `execute_set_schedule` to store `bot_id`, script name, and activation flag; added conflict handling on `(bot_id, param)` to update schedule and reset trigger state.
- Updated imports and logging to reflect new parameters.

These changes enable per‑bot automation management, allow specifying the script to run, and improve idempotent schedule updates.
2025-11-02 19:32: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 - Knowledge management. 2025-10-18 18:20:02 -03:00
6.0.2.sql - Knowledge management. 2025-10-18 18:20:02 -03:00
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: add bot_id to system_automations and enhance schedule handling 2025-11-02 19:32:25 -03:00
6.0.8.sql - Migration to Open ADAL. 2025-10-28 14:53:45 -03:00
6.0.9.sql feat: add bot_id to system_automations and enhance schedule handling 2025-11-02 19:32:25 -03:00