Reputation: 165242
When an external Django app is no longer being used (i.e. removed from INSTALLED_APPS
), what is the proper way to create a migration that deletes all its tables from the database?
Upvotes: 0
Views: 230
Reputation: 5249
One thing you can do is to migrate the app to the zero
migration.
./manage.py migrate <app_name> zero
This will apply all reverse migrations.
If this isn't sufficient for some reason, write your own schema(/data) migration(s).
Upvotes: 2