chore: add migration tooling

This commit is contained in:
Philipp
2026-06-10 15:04:52 +02:00
parent 2112821f79
commit d4752159fb
8 changed files with 126 additions and 8 deletions
+6 -1
View File
@@ -29,7 +29,11 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
## Naechste Aufgaben
- [ ] E2-T01: Migrations-Setup mit `golang-migrate`
- [x] E2-T01: Migrations-Setup mit `golang-migrate`
- [x] Versioniertes SQL-Namensschema unter `migrations/` angelegt
- [x] `make migrate`, `make migrate-down` und `make migrate-version` verdrahtet
- [x] Migrationen laufen lokal per `migrate`-Binary oder Docker-Image `migrate/migrate:v4.18.3`
- [x] DB-URL wird aus `.env`, `deploy/supabase/.env` oder `MIGRATE_DATABASE_URL` abgeleitet
## MVP-Backlog
@@ -68,3 +72,4 @@ Arbeitsliste auf Basis von `proxmox-console-entwicklungsplan.md`. Die Entwurfsda
- 2026-06-10: CI-Workflow fuer Forgejo Actions angelegt; lokales `make verify` erfolgreich.
- 2026-06-10: Gitleaks-Secret-Scan lokal mit `zricethezav/gitleaks:v8.28.0` erfolgreich; keine Leaks gefunden.
- 2026-06-10: Gemeinsamer Go-Config-/Logging-Layer angelegt; Tests fuer Config-Defaults und Validierung ergaenzt.
- 2026-06-10: `golang-migrate`-Setup mit Baseline-Migration angelegt; lokaler Up/Down-Lauf gegen Supabase verifiziert.