botserver/migrations
Rodrigo Rodriguez (Pragmatismo) 02c36a8888 feat(db): add bot_id column, constraints, enforce DATABASE_URL
- Extend `system_automations` with a non‑null `bot_id` UUID column, create an index on it, and add a unique constraint on `(bot_id, kind, param)` to support upserts.
- Add a unique constraint on `bot_configuration.config_key` to prevent duplicate configuration keys.
- Include migration guards to ensure the new constraint is only created once.
- Remove automatic writing of drive configuration to a `.env` file, cleaning up side‑effects during config loading.
- Change database connection handling to require `DATABASE_URL` to be set (no fallback), making the environment initialization explicit.
2025-11-05 08:47:28 -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(db): add bot_id column, constraints, enforce DATABASE_URL 2025-11-05 08:47:28 -03:00