I have a problem with migrations on heroku. I have just upgraded version of django from 1.8.1 to 1.8.2 in my project on heroku, because of some missing migrations:
After this upgrade, on my local project I was forced to do standard procedure: python manage.py makemigrations python manage.py migrate
Of course this new, generated migrations are outside of my git repository. If I will run heroku run this will generate new migrations in new dyno, so without any impact on my current slug.
What is the best solution for this situation? How to generate migrations or add missing migrations of django or 3rd part libs when e.g. you are doing upgrade of the libs? What is the best working strategy?
makemigrations
after django update? Is not that new migration already in django folder? Or you meanmakemigrations
for your apps? – WicknerMigrations for 'account': 0002_auto_20150521_2330.py: - Alter field email on emailaddress
So... migration files are missed after update... really strange for me. – Domenigadjango-allauth
?. Post here that new migration if it's just one new. – WicknerBEGIN; ALTER TABLE "account_emailaddress" ALTER COLUMN "email" TYPE varchar(254); COMMIT;
Should I run sql in my database? Or what is other best solution? – Domeniga