Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread Martin Kapfhammer
First I created a CharField: ('currency', models.CharField(max_length=30)), In a later migration I changed it to a foreign key field: field=models.ForeignKey(to='web.Currency'), It worked on a local MySql instance, but not on Postgres on Heroku: django.db.utils.ProgrammingError: column "cur

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-20 Thread Martin Kapfhammer
rency column. > Then add the new column, make migrations and apply. > > On Fri, Feb 20, 2015 at 2:30 PM, Martin Kapfhammer > wrote: > >> First I created a CharField: >> ('currency', models.CharField(max_length=30)), >> >> In a later migration I

Re: Django 1.7 migrate for postgres fails: Charfield to ForeignKey

2015-02-21 Thread Martin Kapfhammer
Alright, so I uncommented the creation of the CharField and changed the AlterField to an AddField operation. Worked! :) Thank you -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it,