test(cloud-store): verify schema migrations

This commit is contained in:
2026-07-12 16:59:08 +08:00
parent 24d9dbf38b
commit 7f5f740e2a
5 changed files with 224 additions and 14 deletions
@@ -12,7 +12,7 @@
- [x] 2.2 Implement SQLAlchemy models and a repository adapter that preserves existing `CloudStore` observable behavior.
- [x] 2.3 Add PostgreSQL and SQLite database URL support with engine/session lifecycle owned by the cloud application.
- [x] 2.4 Add Alembic configuration and a baseline migration that preserves existing host, device, task, and plugin data while adding lease/attempt/result fields.
- [ ] 2.5 Add forward/downgrade migration tests and schema-version readiness checks.
- [x] 2.5 Add forward/downgrade migration tests and schema-version readiness checks.
- [ ] 2.6 Run repository contract tests against SQLite and PostgreSQL, including rollback and process-restart cases.
## 3. Lease-Backed Scheduling