Open ramv opened 5 years ago
This is a bug due to a change in SQLite that Django did not like. See SQLite 3.26 breaks database migration ForeignKey constraint, leaving
At this point, the best bet, assuming you are running Django==1.11.18, is to downgrade to an earlier version of SQLite. SQLite 3.24.0 works with Django 1.11.18.
If you are using brew
to install SQLite, this will help.
For future reference, installs SQlite 3.24.0:
brew install --force https://raw.githubusercontent.com/Homebrew/homebrew-core/b3217181a55f9061c455c48b4bcca749d1ba54bf/Formula/sqlite.rb
Works if you delete saas/migrations, run ./manage.py makemigrations and then migrate.