Datenbank-Migrationssystem einführen #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Beschreibung
Aktuell gibt es nur
schema.sqlals Initialschema. Sobald die App deployed ist und echte Daten enthält, können Schema-Änderungen nicht mehr über DROP+CREATE laufen.Anforderungen
Migrationssystem
migrations/001_initial.sql,002_add_history.sql, etc._migrations (id, name, applied_at)Initialzustand
001_initial.sql= aktuellesschema.sql(Stammdaten + Haupttabellen)Workflow
Technische Optionen
migrations/durchgehen,_migrationsTabelle prüfenEmpfehlung: Eigenbau — einfach, transparent, keine Dependency.
Abhängigkeiten