In a Django project I've been asked to remove completely an installed app;
I've already:
- removed all code references
- removed from
INSTALLED_APPS
- checked there are no db tables around
so far, so good; the problem raises when running:
$> python manage.py migrate
since there is a migration file around with the following:
class Migration(migrations.Migration):
dependencies = [
('THE REMOVED APP', '0001_initial'),
...
operations = [
...
It says:
django.db.migrations.exceptions.NodeNotFoundError:
Migration xxx.yyy dependencies reference nonexistent parent node ('THE REMOVED APP', '0001_initial')
May I change the migration file and commit the following?
@@ -14,7 +14,6 @@ class Migration(migrations.Migration):
dependencies = [
- ('THE REMOVED APP', '0001_initial'),
]