3 ms·
I’m not a database architect, but can’t you just add the column or whatever as a nullable field in one migration, update the application to write to the column,
by mathieuh 6y ago
I’m not a database architect, but can’t you just add the column or whatever as a nullable field in one migration, update the application to write to the column, and then make the field non-nullable in a further migration?
As I say I’m no expert but this is what I’ve done previously.
- gomox 6y agoYou can, but a transactional database migration is much nicer, predictable and less prone to bugs.