Add reverse_sql in 0117_move_objectchange.py #10394

Closed
opened 2025-12-29 21:30:52 +01:00 by adam · 1 comment
Owner

Originally created by @mulmat on GitHub (Oct 22, 2024).

Proposed Changes

I was in need of downgrading and stumbled upon extras/migrations/0117_move_objectchange.py not allowing downgrade. I've modified 0117_move_objectchange.py to allow for downgrade and can submit a PR for it.

Justification

Always nice to be able to downgrade.

Originally created by @mulmat on GitHub (Oct 22, 2024). ### Proposed Changes I was in need of downgrading and stumbled upon `extras/migrations/0117_move_objectchange.py` not allowing downgrade. I've modified `0117_move_objectchange.py` to allow for downgrade and can submit a PR for it. ### Justification Always nice to be able to downgrade.
adam added the type: housekeepingnetbox labels 2025-12-29 21:30:52 +01:00
adam closed this issue 2025-12-29 21:30:53 +01:00
Author
Owner

@jeremystretch commented on GitHub (Oct 23, 2024):

NetBox does not support reverse migrations, as there are many scenarios where this is untenable. The recommended course of action is always to save a copy of your database prior to running any migrations.

@jeremystretch commented on GitHub (Oct 23, 2024): NetBox does not support reverse migrations, as there are many scenarios where this is untenable. The recommended course of action is always to save a copy of your database prior to running any migrations.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#10394