Files
where_woof/openspec/changes/scan-flow/specs/database/spec.md

577 B

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