Queries can be found in the forum/sql folder.
- Update migration:
python manage.py migrate --fake forum zero
rm forum/migrations/0001_initial.py
python manage.py makemigrations forum
-
Drop forum tables.
-
Apply new migration and save schema's SQL:
python manage.py migrate forum
python manage.py sqlmigrate forum 0001_initial > forum/sql/schema.sql