Revision history [back]
ValueError: The database backend does not accept 0 as a value for AutoField.
I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"
I set up mysql using :
- sudo apt-get install build-essential
- python-dev libmysqlclient-dev sudo
- pip install mysql-python
- sudo apt-get install python-mysqldb
- sudo apt-get install mysql-server
I tried:
- python manage.py migrate askbot 0054 #migrate normally up to the 54th migration
- python manage.py migrate askbot 0055 --fake #skip this migration
- python manage.py migrate askbot #finish migrating askbot
- python manage.py migrate #finish migrating anything else (if necessary)
But I got error at #89, #92 and #98
ValueError: The database backend does not accept 0 as a value for AutoField.
I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"
I set up mysql using :
I tried:
But I got error at #89, #92 and #98
ValueError: The database backend does not accept 0 as a value for AutoField.
I am seeing this error when I run "python manage.py migrate askbot" My database is MySQL and its version is "Server version: 5.5.34-0ubuntu0.12.04.1"
I set up mysql using :
sudo apt-get install build-essential
python-dev libmysqlclient-dev sudo
pip install mysql-python
sudo apt-get install python-mysqldb
sudo apt-get install mysql-server
I tried: python manage.py migrate askbot 0054 #migrate normally up to the 54th migration python manage.py migrate askbot 0055 --fake #skip this migration python manage.py migrate askbot #finish migrating askbot python manage.py migrate #finish migrating anything else (if necessary)
But I got error at #89, #92 and #98