Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yes. 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.



Can the Django ORM support migrations of stored procs, custom types, and other non-tabular entities?


Devil's advocate - how is it really better to have a bunch of autogenerated Django migration files?


Better than what?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: