No description
- Add schema_migrations table for version tracking (version INT PK, applied_at INT, description TEXT) - Implement Migration registry with Migration structs (Version, Description, Up func) - Startup phase reads current schema_ver and runs pending migrations in transactions - Pre-migration backup using SQLite VACUUM INTO to /data/backups/pre-upgrade-v<old>-to-v<new>-<timestamp>.sqlite - Create /data/backups/ directory automatically; prune backups older than 90 days - Initial migrations: v001 initial schema, v002 diurnal_baselines, v003 anomaly_patterns, v004 prediction_models, v005 ble_device_aliases - Failed migration exits cleanly with error; backup preserved; no partial schema state - Idempotent: running migrations on already-migrated DB is a no-op - Standalone migrate.go CLI tool for running migrations outside the mothership process Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .beads | ||
| .marathon | ||
| dashboard | ||
| docs | ||
| firmware | ||
| mothership | ||
| .dockerignore | ||
| .gitignore | ||
| .needle-predispatch-sha | ||
| .needle.yaml | ||
| docker-compose.yml | ||
| Dockerfile | ||
| PROGRESS.md | ||
| VERSION | ||