feat(04-schema-docs): annotate ensure_* compensating migrations and update DB_SCHEMA.md

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-13 10:15:58 +01:00
parent 9a0dbe050b
commit 2d4b52adfc
15 changed files with 735 additions and 64 deletions

View File

@@ -5,29 +5,30 @@
See: .paul/PROJECT.md (updated 2026-03-12)
**Core value:** Sprzedawca może obsługiwać zamówienia ze wszystkich kanałów sprzedaży i nadawać przesyłki bez przełączania się między platformami.
**Current focus:** Faza 03 — Tech Debt 2 COMPLETE (1/1). Gotowe do planowania fazy 04.
**Current focus:** Faza 05 — Tech Debt 3 COMPLETE (1/1). Gotowe do planowania fazy 06.
## Current Position
Milestone: v0.1 Initial Release
Phase: 4 of TBD (next phase TBD) — Not started
Plan: Not started
Status: Ready to plan Phase 4
Last activity: 2026-03-13 — Phase 03 complete, transitioned to Phase 4
Phase: 5 of TBD (05-tech-debt-3) — Complete
Plan: 05-01 complete
Status: Phase 5 complete — ready for next phase
Last activity: 2026-03-13 — Phase 05 complete (05-01-SUMMARY.md)
Progress:
- Milestone: [█████░░░░░] ~50%
- Milestone: [███████░░░] ~65%
- Phase 1: [██████████] 100%
- Phase 2: [██████████] 100% (4/4 plans complete)
- Phase 3: [██████████] 100% (1/1 plans complete)
- Phase 4: [░░░░░░░░░░] 0% (not started)
- Phase 4: [██████████] 100% (1/1 plans complete)
- Phase 5: [██████████] 100% (1/1 plans complete)
## Loop Position
Current loop state:
```
PLAN ──▶ APPLY ──▶ UNIFY
✓ ✓ ✓ [Phase 03 complete — ready for Phase 4 PLAN]
✓ ✓ ✓ [Phase 05 complete — ready for Phase 6 PLAN]
```
## Accumulated Context
@@ -39,6 +40,17 @@ PLAN ──▶ APPLY ──▶ UNIFY
| 2026-03-12 | StringHelper jako final static class w Core/Support | Faza 01 | 19 duplikatów helperów usunięte z 15 klas |
| 2026-03-13 | CronHandlerFactory jako jedyne miejsce kompozycji crona | Faza 02 | Application.php i bin/cron.php zsynchronizowane; 2 bugi naprawione |
| 2026-03-13 | Pole CSRF w formularzach: `_token` (nie `_csrf_token`) | Faza 03 | Ustandaryzowane w OrdersController, ShipmentController i 2 widokach |
| 2026-03-13 | Flash messages: Flash::set('module.type') / Flash::get('module.type', '') | Faza 05 | OrdersController i ShipmentController zmigrowane; jeden wzorzec w całej aplikacji |
### Skill Audit (Faza 05, Plan 01)
| Oczekiwany | Wywołany | Uwagi |
|------------|---------|-------|
| sonar-scanner | ○ | Pominięto — uruchomić ręcznie przed następnym planem z kodem PHP |
### Skill Audit (Faza 04, Plan 01)
| Oczekiwany | Wywołany | Uwagi |
|------------|---------|-------|
| sonar-scanner | ○ | Pominięto — plan czysto dokumentacyjny (komentarze SQL, brak nowego kodu PHP); uruchomić przy kolejnym planie z kodem |
### Skill Audit (Faza 03, Plan 01)
| Oczekiwany | Wywołany | Uwagi |
@@ -73,9 +85,9 @@ Brak.
## Session Continuity
Last session: 2026-03-13
Stopped at: Phase 03 complete, transition done
Next action: /paul:plan dla Phase 4
Resume file: .paul/ROADMAP.md
Stopped at: Phase 05 complete
Next action: /paul:plan dla Phase 6
Resume file: .paul/phases/05-tech-debt-3/05-01-SUMMARY.md
---
*STATE.md — Updated after every significant action*