openspec: scan-flow change — proposal, design, 5 specs (3 new + 2 deltas), tasks
This commit is contained in:
12
openspec/changes/scan-flow/specs/database/spec.md
Normal file
12
openspec/changes/scan-flow/specs/database/spec.md
Normal 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
|
||||
Reference in New Issue
Block a user