News for hackers. Stuff that matters.
Re:Notes on Starting to Use Django by IceDane on Wednesday January 28, 2026 @12:54AM (#46791579)
There is no way to autogenerate migrations that work in all cases. There are lots of things out there that can generate migrations that work for most simple cases.
Re:Notes on Starting to Use Django by boxed on Wednesday January 28, 2026 @04:07AM (#46792860)
That's why you can do your own migrations in Django for those edge cases.
Re:Notes on Starting to Use Django by etchalon on Wednesday January 28, 2026 @01:17AM (#46791721)
Django manages to autogenerate migrations that work in the VAST majority of cases.
Re:Notes on Starting to Use Django by frankwiles on Wednesday January 28, 2026 @06:35AM (#46794036)
I end up needing to write a manual migration maybe once every other year in real world use.
Re:Notes on Starting to Use Django by hansonkd on Wednesday January 28, 2026 @10:17AM (#46796435)
They don't need to work in every case. For the past `~15 years 100% of the autogenerated migrations to generating tables, columns or column names I have made just work. and i have made thousands of migrations at this point.

The only thing to manually migrate are data migrations from one schema to the other.