Friday, July 29, 2016

django 1.9, migrations SUCK

Hi,

I am dev in django at last 4 years, i missed ./manage.py syncdb,

Delete all tables from databases (MariaDB, PostgreSQL) command line from DB, and run python manage.py migrate always same error

python manage.py migrate
django.db.utils.ProgrammingError: (1146, "Table 'dashaboard_web.did_didcountry' doesn't exist")

python manage.py migrate did
django.db.utils.ProgrammingError: (1146, "Table 'dashaboard_web.did_didcountry' doesn't exist")

python manage.py makemigrations
django.db.utils.ProgrammingError: (1146, "Table 'dashaboard_web.did_didcountry' doesn't exist")

python manage.py sqlmigrate did 0001
django.db.utils.ProgrammingError: (1146, "Table 'dashaboard_web.did_didcountry' doesn't exist")

python manage.py migrate --run-syncdb
django.db.utils.ProgrammingError: (1146, "Table 'dashaboard_web.did_didcountry' doesn't exist")


if the tables doesn't exist, why create table new ???
as, create new tables run command python manage.py migrate ??

--
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, send an email to django-users+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/385e00d8-bfc0-44a5-90b4-aad0aa1fd9eb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment