I'm using Django 1.9 and somewhere in the development process the migrations tool stopped working and was throwing strange errors, therefore I wanted to start off with a new database (MySQL). So I removed all old migrations, created a new initial one with manage.py makemigrations
, switched to a new empty DB in the settings and wanted to run manage.py migrate
. The problem is that some of might existing code calls to tables that are not yet present in the new DB and this actually throws an error when I execute migrate
.
django.db.utils.ProgrammingError: (1146, "Table 'new_db.old_table' doesn't exist")
How can I circumvent this problem?