Add ability to run migrations without the need for replicaset #827
Closed
mmabrouk
started this conversation in
Feature Request
Replies: 1 comment
-
Implemented in #828 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Right now, many projects do not have a replicaset but still want to utilize the beanie migration feature. Hence, I suggest introducing an option in the migrate command that executes the migration without the need for a replicaset.
By using this command, the
run_migration_class
will initiate the migration without using a transaction.Obviously this comes with risks. However, I think in many cases, the user can take care of these (by backing up or testing first on a dummy db...).
I would like to work on this issue. (I will probably add a PR today, since we need it in our open-source project)
p.s. Maybe some context. We are working on an open-source platform using mogodb (agenta.ai). Our platform has a cloud version and an oss version. Obviously fo the self-hosted oss version, we cannot expect our users to run replicasets. We would like however to provide them with the tools to run migrations when updating versions.
Beta Was this translation helpful? Give feedback.
All reactions