Friday, July 29, 2016

Re: django 1.9, migrations SUCK

same error, in mariaDB, postgresql, rigth now in sqlite3


El viernes, 29 de julio de 2016, 9:07:33 (UTC-5), Jorge Cadena escribió:
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/f9ab505a-7bd7-4e85-8759-9a211c388154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment