botserver/migrations
Rodrigo Rodriguez (Pragmatismo) e3bd06ff54 feat(db): add unique constraint to system_automations and fix clicks PK
- Added migration 6.0.6 to enforce a unique constraint on `(bot_id, kind, param)` in `system_automations`, preventing “no unique or exclusion constraint matching the ON CONFLICT specification” errors, and created a supporting index.
- Added migration 6.0.7 to replace the `clicks` table with a correctly defined primary key and a unique `(campaign_id, email)` constraint, satisfying Diesel
2025-11-05 10:19:02 -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 unique constraint to system_automations and fix clicks PK 2025-11-05 10:19:02 -03:00