django-fastdev icon indicating copy to clipboard operation
django-fastdev copied to clipboard

Crash page on not running migrations? Run them right there!

Open boxed opened this issue 3 years ago • 1 comments

It would be very cool if the crash page on missing migrations would have a button to makemigrations+migrate!

Example error

ProgrammingError at /admin/store/product/1/edit/
column store_product.amount_limit does not exist
LINE 1: ...oduct"."image_id", "store_product"."description", "store_pro...

boxed avatar Feb 09 '22 13:02 boxed

We should also check the list of applied migrations in the DB, and check that all of those exist on disk. If they don't, tell the user why that is a big problem, and tell the user that the best way forward is to delete the db and start from scratch.

boxed avatar Apr 22 '22 06:04 boxed