- 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. |
||
|---|---|---|
| .. | ||
| 6.0.0.sql | ||
| 6.0.1.sql | ||
| 6.0.2.sql | ||
| 6.0.3.sql | ||
| 6.0.4.sql | ||
| 6.0.5.sql | ||
| 6.0.8.sql | ||
| 6.0.9.sql | ||