Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
boxed opened this issue Feb 9, 2022 · 1 comment
Open

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

boxed opened this issue Feb 9, 2022 · 1 comment
Labels
good first issue Good for newcomers

Comments

@boxed
Copy link
Owner

boxed commented Feb 9, 2022

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 boxed added the good first issue Good for newcomers label Feb 9, 2022
@boxed
Copy link
Owner Author

boxed commented Apr 22, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant