Re: How to make a migration irreversible [1.7]

2014-12-21 Thread Bibhas
Hey Markus, Thanks for the suggestion. Added that snippet for now. I was kind of surprised when I could not find a way to handle the backward migrations. I created a ticket - https://code.djangoproject.com/ticket/24037 For now I don't mind the migration being irreversible. But the perfect sol

Re: How to make a migration irreversible [1.7]

2014-12-21 Thread Markus Holtermann
Hey Bibhas, thank you for the report. I can verify that behavior and would classify it as a release blocker since it leads to potential data loss. Can you open a ticket on https://code.djangoproject.com/ please. In general a migration is a collection of operations. The migration will only be u

How to make a migration irreversible [1.7]

2014-12-21 Thread Bibhas
Hi, I need to make a migration irreversible. And strangely I don't see any way to do it in the migration doc. I see that the Operation class has a property called `reversible`, but don't see any way to set it to False. I had a legacy model that was generated with inspectdb, hence it had manage