Ticket #266 (closed defect: fixed)
rename_column does not specify table name
|Reported by:||anonymous||Owned by:||andrew|
I renamed a model field from a foreign key to a varchar using:
./manage.py startmigration <app> change_field --auto
When running the migration with:
./manage.py migrate <app>
I got the following error:
TypeError?: alter_column() takes at least 4 arguments (3 given)
Going into the migration and adding the table name as the first argument fixes the problem.
When running the migration backwards, I get the following error:
psycopg2.ProgrammingError?: column "greek_letter" cannot be cast to type "pg_catalog.int4"
In order to do the reverse migration I delete the column and create a new one altogether.
I am running south against PostgresSQL using psycopg2.