No description
Fixed a deadlock in the Migrator where Pending() and Migrate() methods called CurrentVersion() while holding the lock, but CurrentVersion() also tried to acquire the same lock. Created internal currentVersionLocked() method for lock-safe access. Also fixed unused imports in migrations.go and fixed NOT NULL constraint in TestMigrateFromV1 test. All tests pass including: - TestMigrateIdempotent: running migrations on already-migrated DB is no-op - TestMigrateFromV1: migrating from v1 to current version - TestMigrationRollback: failed migrations roll back cleanly - TestPreMigrationBackup: backups created before schema changes - TestPendingMigrations: pending migrations correctly identified - TestCurrentVersion: version queries work for all DB states - TestBackupPruning: old backups pruned correctly - TestOpenDBFullSequence: full 7-phase startup sequence 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 | ||