Use ordered SQLite migrations (Refs #75)
CI / checks (push) Successful in 5m6s

This commit is contained in:
2026-10-10 00:01:18 -04:00
parent a0663e43b8
commit 8d1bb69591
56 changed files with 1085 additions and 736 deletions
@@ -122,6 +122,7 @@ it('adds the requester column to existing databases without inventing historical
await import('../../src/lib/server/provisioning/history.js');
const id = beginDeployment('legacy', 'restart');
db().exec('ALTER TABLE server_deployments DROP COLUMN requested_by');
db().pragma('user_version = 0');
closeDb();
expect(getDeployment(id)?.deployment).toMatchObject({ requested_by: null, triggered_by: 'ui' });
});