Jul 2nd - Optimized code 6

This commit is contained in:
2026-07-02 17:25:19 -04:00
parent d2ea7174ba
commit 3c31c7a491
5 changed files with 107 additions and 44 deletions
+3
View File
@@ -510,6 +510,8 @@ Migrations live in `migrations/versions/`. The chain is:
└── 004_widen_system_setting_value — system_settings.value VARCHAR(500) → TEXT
└── 005_add_watchers_and_time_entries — creates ticket_watchers
and time_entries tables
└── 006_add_sla_breach_notified — adds tickets.sla_breach_notified;
retires sla_notified_tickets setting
```
**Rules:**
@@ -845,6 +847,7 @@ When an error is reported:
| `003_render_comments` | Backfill comment bodies to HTML; widen `alembic_version.version_num` to `VARCHAR(64)` |
| `004_widen_system_setting_value` | Widen `system_settings.value` from `VARCHAR(500)` to `TEXT` |
| `005_add_watchers_and_time_entries` | Create `ticket_watchers` (UniqueConstraint + index) and `time_entries` (index) tables |
| `006_add_sla_breach_notified` | Add `tickets.sla_breach_notified` boolean; backfill from and retire the `sla_notified_tickets` SystemSetting |
## 21. Browser Tab Notification Counter (added 2026-04-17)