docs(02-backend-refactor): create phase plan
This commit is contained in:
@@ -43,7 +43,11 @@ Plans:
|
||||
2. HTTP handlers contain no SQL — all persistence goes through named Store methods
|
||||
3. Package-level global variables (db, mu, webhookSecret) no longer exist
|
||||
4. Schema changes are applied via versioned migration files, not ad-hoc DDL in application code
|
||||
**Plans**: TBD
|
||||
**Plans**: 2 plans
|
||||
|
||||
Plans:
|
||||
- [ ] 02-01-PLAN.md — Create Store interface (9 methods), SQLiteStore implementation, golang-migrate migration infrastructure with embedded SQL files
|
||||
- [ ] 02-02-PLAN.md — Convert handlers to Server struct methods, remove globals, rewrite tests for per-test isolated databases, update main.go wiring
|
||||
|
||||
### Phase 3: PostgreSQL Support
|
||||
**Goal**: Users running PostgreSQL infrastructure can point DiunDashboard at a Postgres database via DATABASE_URL and the dashboard works identically to the SQLite deployment
|
||||
@@ -79,6 +83,6 @@ Phases execute in numeric order: 1 → 2 → 3 → 4
|
||||
| Phase | Plans Complete | Status | Completed |
|
||||
|-------|----------------|--------|-----------|
|
||||
| 1. Data Integrity | 0/2 | Not started | - |
|
||||
| 2. Backend Refactor | 0/? | Not started | - |
|
||||
| 2. Backend Refactor | 0/2 | Not started | - |
|
||||
| 3. PostgreSQL Support | 0/? | Not started | - |
|
||||
| 4. UX Improvements | 0/? | Not started | - |
|
||||
|
||||
Reference in New Issue
Block a user