Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to uninstall - django.db.migrations.exceptions.IrreversibleError #368

Open
l-astro opened this issue Sep 20, 2024 · 1 comment
Open

Comments

@l-astro
Copy link

l-astro commented Sep 20, 2024

I am trying to uninstall knox by first running:

python manage.py migrate knox zero

but am coming across the following error:

django.db.migrations.exceptions.IrreversibleError: Operation <RunPython <function cleanup_tokens at 0xffff5ff11000>> in knox.0006_auto_20160818_0932 is not reversible

I'm not sure the best route forward here?
Many thanks,

@johnraz
Copy link
Collaborator

johnraz commented Dec 7, 2024

Well you can simply delete the tables related to knox, no need to migrate to zero.

I reckon the migration should work backward but we have limited people here so unless you feel like fixing it (which would be very nice), it’s not going to happen any time soon 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants