openspec: scan-flow change — proposal, design, 5 specs (3 new + 2 deltas), tasks

This commit is contained in:
2026-08-05 15:06:08 +10:00
parent 0b35aab80c
commit 4666751e92
10 changed files with 261 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
## ADDED Requirements
### Requirement: sms_enabled column
The `tags` table SHALL include an `sms_enabled` boolean column, NOT NULL with default TRUE. The schema SHALL add it idempotently so existing databases migrate cleanly.
#### Scenario: Fresh database
- **WHEN** `db/schema.sql` is applied to an empty database
- **THEN** `tags.sms_enabled` exists, defaulting to TRUE
#### Scenario: Existing database
- **WHEN** `db/schema.sql` is re-applied to a database created before this column existed
- **THEN** the column is added without error and existing rows default to TRUE