Skip to content

Auto-Migration #406

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

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Auto-Migration #406

wants to merge 3 commits into from

Conversation

Volte6
Copy link
Member

@Volte6 Volte6 commented Jun 22, 2025

Description

This defines a basic process for including auto-correcting/updating of datafiles etc. when users upgrade to a new binary version.

Changes

  • main.go now defines VERSION - this should match release versions
  • internal/migration/ code foor migration purposes.
  • migration code is invoked in main.go before datafiles etc. are loaded (except for config)
  • fixes a small error in training room script

@Volte6 Volte6 requested review from Jasrags and MorquinDevlar June 22, 2025 04:08
Copy link
Contributor

@MorquinDevlar MorquinDevlar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think is a good idea, although I don't see any kind of backup being taken before migration is done. If migration fails, there is seemingly no way to get back to the previous version.

Also, I don't see any validation for loading zone config's, and potentially adding missing ones before migration. Just an observation.

Comment on lines +51 to +53
func (v Version) IsOlderThan(other Version) bool {
return v.Compare(other) <= Older
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't this consider equal versions as older than each other? I would think this should be just < Older

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

Successfully merging this pull request may close these issues.

2 participants