I keep getting the following error when doing a migration (python manage.py migrate):
django.db.utils.ProgrammingError: column \"name\" of relation \"django_
Encountered this when upgrading to 1.8 and migrating from MySQL to Postgres.
I can't explain why the error occurs, but I was able to get around it by manually adding the column:
Delete all migrations
Delete records from django_migrations
Manually add name column:
ALTER TABLE django_content_type ADD COLUMN name character varying(50) NOT NULL DEFAULT 'someName';
Run fake initial: $ python manage.py migrate --fake-initial
Edit 12/2016: I'm recommending this as a workaround, more suited for personal projects or local environments and not production environments. Obviously if you care about your migration history this is not the way to go.