2012-03-13T06:44:03+00:00
We had a table having more than 6 lakh records. Everytime we added a new field to the model, and ran the migration we got timeout. So, we did the following 3 step procedure 1) Opened psql with timeout options -
PGOPTIONS="-c statement_timeout=0" psql -U name
manage.py migrate --db-dry-run --verbosity=2
python manage.py migrate modelname --fake