Yuval Adam
Yuval Adam

Reputation: 165242

Removing external app migration in Django south

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

Answers (1)

Krzysztof Szularz
Krzysztof Szularz

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

Related Questions