refactor(db): drop the occupancy_settings_audit CHECK rebuild that never runs on shipped databases #256
Labels
No labels
blocked
bug
enhancement
high-priority
low-priority
needs-info
needs-triage
ready-for-agent
ready-for-human
referenced
research
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gabogg/hikcentral#256
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
P3 follow-up from PR #177 review pass 5 (standards axis).
Finding
app/db/database.py(~508-536) rebuildsoccupancy_settings_auditin place (RENAME, CREATE,INSERT ... SELECT *, DROP) to addCANCELLATIONto its CHECK constraint.SELECT *relies on both definitions having the same column order._run_schemahappened to open a transaction.Acceptance Criteria
CREATE TABLEwith the four-action CHECK stays the only definition.