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

Appspace migration fails if migrate-only in the down direction #105

Open
teleclimber opened this issue Apr 5, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@teleclimber
Copy link
Owner

If you try to migrate appspace data in the "migrate only" mode (meaning no app version change, migrate to change the data to match the currently selected app version) then ds-host chooses the wrong version of the code to run migration, and therefore errors when the needed migration function is not found.

Note that on app acquisition ds-host reads teh migration capabilities of the code (what schema versions, up/down) and writes them down in migrations.json in app files metadata.

@teleclimber teleclimber added the bug Something isn't working label Apr 5, 2023
@teleclimber
Copy link
Owner Author

Note that the same error occurs if changing app version and the appspace schema is at a version higher than either to and from app version schemas.

Basically the migration system needs to look at the starting and ending schema versions, and deliberately find one app version that offers the right migrations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant