eugene
eugene

Reputation: 41665

remove a migration from south migration history

I have an app named 'robots' and used 0.9 version of it

I later find out 0.9 has a feature I don't want and downgraded to 0.8

After sometime, I try to do south migrate on my project and meet an error south.exceptions.NoMigrations: Application '<module 'robots' from '/home/ubuntu/virtualenvs/codingqna/local/lib/python2.7/site-packages/robots/__init__.pyc'>' has no migrations.

I guess 0.9 had migrations file but 0.8 doesn't, and south is complaining about it.

How do I remove this from south's history like it never existed? (like I used 0.8 from the beginning without the migrations files)

Or any other way I can use here?

Upvotes: 4

Views: 3825

Answers (1)

Akshar Raaj
Akshar Raaj

Reputation: 15211

delete from south_migrationhistory where app_name='robots';

south_migrationhistory table just keeps track of what migrations have been applied and what are yet to be applied. Since 0.8 of robots doesn't have any migration files any entries for it from table south_migrationhistory can be removed and it won't affect anything else.

Upvotes: 1

Related Questions