Adapt some migrations so they can be rolled back #565

Merged
floatingghost merged 1 commits from ilja/akkoma:fix_some_migrations_for_rollback into develop 2023-06-26 12:52:23 +00:00
Contributor

This may be useful for people who want to migrate back to Pleroma. It's also added in the docs, but also noted that this is barely tested and to be used at their own risk.

I added this because I've seen two cases of people wanting to switch back, plus the website actually says migrations are 100% reversible[1], which wasn't actually true.

I did the rollback on a local dev instance and then did migrations again. Akkoma worked. I did not try an actual migration from Akkoma to Pleroma, but the goal was mostly just to see if the migrations were actually rollbackable without breaking things.

I did the rollback to 20210416051708 because I had it in some notes that this was the last common migration, but I haven't double checked.

Basically, I'm adding it as a way to give people an option, but in the end it's always a risk and it's up to them to decide if the risk and effort is worth it.

[1] https://akkoma.social/

Is it possible to migrate from Akkoma back to Pleroma?
Yes, although it's not as easy. You'd have to roll back migrations, but all akkoma changes are 100% reversible and non-destructive.

This may be useful for people who want to migrate back to Pleroma. It's also added in the docs, but also noted that this is barely tested and to be used at their own risk. I added this because I've seen two cases of people wanting to switch back, plus the website actually says migrations are 100% reversible[1], which wasn't actually true. I did the rollback on a local dev instance and then did migrations again. Akkoma worked. I did not try an actual migration from Akkoma to Pleroma, but the goal was mostly just to see if the migrations were actually rollbackable without breaking things. I did the rollback to 20210416051708 because I had it in some notes that this was the last common migration, but I haven't double checked. Basically, I'm adding it as a way to give people an option, but in the end it's always a risk and it's up to them to decide if the risk and effort is worth it. [1] <https://akkoma.social/> > Is it possible to migrate from Akkoma back to Pleroma? > Yes, although it's not as easy. You'd have to roll back migrations, but all akkoma changes are 100% reversible and non-destructive.
ilja added 1 commit 2023-06-09 20:14:09 +00:00
ci/woodpecker/pr/woodpecker Pipeline is pending Details
3a13f91fff
Adapt some migrations so they can be rolled back
This is useful for people who want to migrate back to Pleroma.
It's also added in the docs, but also noted that this is barely tested and to be used at their own risk.

this seems good~

thankies

this seems good~ thankies
floatingghost merged commit 4db42f5ab5 into develop 2023-06-26 12:52:23 +00:00
floatingghost deleted branch fix_some_migrations_for_rollback 2023-06-26 12:52:23 +00:00
Sign in to join this conversation.
No description provided.