3 ms·
I don't get it. Isn't any good SQL ORM provide their own DSLs for migrations?
by hartator 10y ago
I don't get it. Isn't any good SQL ORM provide their own DSLs for migrations?
- orf 10y agoYes. Look, take for example the Django ORM. You specify the models in a python file. These are the central source of truth for what your database tables look like. If you want to add a column or change something in the schema you then generate the migrations from that. The migrations don't drive your schema, the schema drives the migrations. Proper tools don't make you have a bunch of .SQL files that organise your database.