← All topics
Topic
Migrations & Legacy
Moving live systems from old to new without breaking the people using them.
Lessons · 3
- Creation Rules Must Never Gate Authentication The rules for what a new username may look like are not the rules for what an existing one does look like. Reuse the creation type at login and you lock out every account created under older, looser rules. Permanently, and with an error that tells nobody why.
- A Migration Has Two Halves Renaming a contract that live resources carry isn't a rename. It's a data migration: honor both names, write the new one, relabel in place. And the migration usually has two halves that don't move together: the one you can see, and the one that will delete your data if you call it done too early.
- Schema Migrations That Don't Drift A migration system that works is not just a runner that applies SQL files. It's a system that can answer, at any moment: exactly what state is prod in, how did it get there, and what happens if someone deviates from the path? uBixCore's migration standard is built around that question.
Churts · 1
Other topics