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

skip migration on new db #59

Merged
merged 7 commits into from
Nov 17, 2023
Merged

skip migration on new db #59

merged 7 commits into from
Nov 17, 2023

Conversation

gertd
Copy link
Member

@gertd gertd commented Nov 16, 2023

Skip migration when the target database file does not exist, preventing the creation of the migration version backups.

@gertd gertd marked this pull request as draft November 16, 2023 21:22
Copy link

github-actions bot commented Nov 16, 2023

Pull Request Test Coverage Report for Build 6900099376

  • 78 of 111 (70.27%) changed or added relevant lines in 7 files are covered.
  • 319 unchanged lines in 9 files lost coverage.
  • Overall coverage decreased (-8.1%) to 28.985%

Changes Missing Coverage Covered Lines Changed/Added Lines %
pkg/bdb/boltdb.go 1 3 33.33%
pkg/bdb/metadata.go 1 3 33.33%
pkg/bdb/migrate/mig/mig.go 3 5 60.0%
pkg/fs/fs.go 14 17 82.35%
pkg/bdb/migrate/mig003/migrate.go 39 51 76.47%
pkg/bdb/migrate/migrate.go 14 26 53.85%
Files with Coverage Reduction New Missed Lines %
pkg/directory/directory.go 4 75.0%
pkg/bdb/boltdb.go 7 54.17%
pkg/bdb/metadata.go 7 66.04%
pkg/bdb/generic.go 12 53.52%
pkg/bdb/migrate/mig001/migrate.go 25 0.0%
pkg/bdb/migrate/mig002/migrate.go 54 4.05%
pkg/bdb/migrate/mig/mig.go 56 35.85%
pkg/bdb/migrate/migrate.go 64 13.77%
pkg/bdb/migrate/mig003/migrate.go 90 20.24%
Totals Coverage Status
Change from base Build 6869955631: -8.1%
Covered Lines: 1002
Relevant Lines: 3457

💛 - Coveralls

@gertd gertd marked this pull request as ready for review November 17, 2023 05:07
@gertd gertd merged commit a3873d6 into main Nov 17, 2023
2 checks passed
@gertd gertd deleted the mig-skip branch November 17, 2023 05:07
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.

1 participant