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

Allow to transfer content even if migration states are different #55

Open
yvesgurcan opened this issue May 23, 2023 · 1 comment
Open

Comments

@yvesgurcan
Copy link
Contributor

Running npx migrations content --source-environment-id master --dest-environment-id non-master-env might result in an error like the following:

Error: Different migration states detected. master (1684445574618) !== non-master-env (1684445717917)

The command exits, which prevents from transferring any content, regardless of whether the model of the content to transfer is actually different between the two environments.

Would it be possible and reasonably safe to let users ignore the error and let them perform content transfers?

@bezoerb
Copy link
Member

bezoerb commented May 30, 2023

Hey @yvesgurcan,

i think it would be possible but i don't think that it's reasonably safe to do so. I could think of something like this:

Error: Different migration states detected. master (1684445574618) !== non-master-env (1684445717917)
Do you wish to:
a) run migrations on target environment
b) backup target environment and continue
c) ignore the risk and continue

But to be honest i think it's to risky and it isn't worth the effort of implementing this ;)
Maybe we should improve the error message to

Error: Different migration states detected. master (1684445574618) !== non-master-env (1684445717917)
Please run "npx migrations migrate -e master and try again"

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

No branches or pull requests

2 participants