Carbon0-Games/carbon0-web-app

Migrations missing from Heroku Environment

Closed this issue · 1 comments

Hey team, so recently an issue has popped up when deploying the site to production on Heroku.

The CLI messages indicate that there are some changes to the models that have not been reflected in the migration files, and that might mean our production database is no longer in sync with what we use locally:

remote: Operations to perform:
remote:   Apply all migrations: accounts, admin, auth, carbon_quiz, contenttypes, sessions, social_django
remote: Running migrations:
remote:   No migrations to apply.
remote:   Your models have changes that are not yet reflected in a migration, and so won't be applied.
remote:   Run 'manage.py makemigrations' to make new migrations, and then re-run 'manage.py migrate' to apply them.

However I did run the makemigrations command locally on the master branch, then migrated them, pushed a new commit to GitHub, and when I deployed again the same message appeared.

Would someone please be able to help us figure out where the changes to our models may be found, so we can make the new migrations?

I investigated this and it's caused by the change in the Achievement.zeron_image_url - that occurs when pushing to Heroku.

Closing for now, since the Zerons still appear on Heroku which leads me to believe this is going to be an issue going forward.