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

[Merged by Bors] - Remove in-code localDB migrations #5814

Closed
wants to merge 6 commits into from

Conversation

poszu
Copy link
Contributor

@poszu poszu commented Apr 8, 2024

Motivation

The code of migrations is not needed anymore, we will require to update to 1.4 before going to 1.5.

Description

Removed in-code migrations for the local DB (migrating from files to DB and renaming the DB).

Test Plan

n/a

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

Copy link

codecov bot commented Apr 8, 2024

Codecov Report

Attention: Patch coverage is 71.42857% with 6 lines in your changes are missing coverage. Please review.

Project coverage is 80.4%. Comparing base (65497af) to head (9107f5c).
Report is 1 commits behind head on develop.

Files Patch % Lines
node/node.go 0.0% 1 Missing and 1 partial ⚠️
node/node_version_check.go 83.3% 1 Missing and 1 partial ⚠️
sql/database.go 71.4% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #5814     +/-   ##
=========================================
+ Coverage     80.2%   80.4%   +0.1%     
=========================================
  Files          286     283      -3     
  Lines        29789   29319    -470     
=========================================
- Hits         23910   23575    -335     
+ Misses        4229    4150     -79     
+ Partials      1650    1594     -56     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

CHANGELOG.md Show resolved Hide resolved
CHANGELOG.md Show resolved Hide resolved
node/node.go Outdated Show resolved Hide resolved
}

// v1.5 requires going through v1.4 first as it removed in-code migrations.
func verifyUpgradeToV15(cfg *config.Config) error {
Copy link
Member

Choose a reason for hiding this comment

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

This can probably be inlined, because if we require a higher version later we will just upgrade the version check on line 28 below instead of adding a new function.

@poszu
Copy link
Contributor Author

poszu commented Apr 10, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Apr 10, 2024
## Motivation

The code of migrations is not needed anymore, we will require to update to 1.4 before going to 1.5.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title Remove in-code localDB migrations [Merged by Bors] - Remove in-code localDB migrations Apr 10, 2024
@spacemesh-bors spacemesh-bors bot closed this Apr 10, 2024
@spacemesh-bors spacemesh-bors bot deleted the remove-incode-localdb-migrations branch April 10, 2024 08:01
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.

4 participants