1๐
โ
-
Determine what the default is in the database
cd /path/to/project python manage.py dbshell mysql> show create table district_season\G # or for postgres # pg_dump -t 'schema.district_season' --schema-only database-name
-
If there is no problem with the type, run the migration with โfake
./manage.py migrate district --fake
which will mark the migration as having been run without doing anything to the database.
๐ค2ps
Source:stackexchange.com