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

Upgrade command should fail if no previuos version number can be found. #1741

Merged

Conversation

woodfighter
Copy link
Contributor

Currently the sympa upgrade cli command when not given an explicit previous version via the from parameter checks the file data_structure.version in the config directory. But instead of stopping if this also doesn't exist it assumes the previous version to be zero an consequently tries to apply all data upgrades. This patch just lets upgrade err on the safe side. If the previous behavior is needed passing along a --from 0 should suffice.

@ikedas ikedas added the bug label Nov 23, 2023
@ikedas
Copy link
Member

ikedas commented Nov 26, 2023

Confirmed. @woodfighter , thank you for fixing bug! This PR will be merged in some days.

@ikedas ikedas added the ready A PR is waiting to be merged. Close to be solved label Nov 26, 2023
@racke racke added this to the 6.2.74 milestone Dec 1, 2023
@racke racke merged commit 0438d44 into sympa-community:main Dec 1, 2023
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ready A PR is waiting to be merged. Close to be solved
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants