Skip to content

db_migration: Migrated CandidateStateInDb.match pickle to proper table schema#297

Open
semohr wants to merge 14 commits into
release/2.0.0from
match_db_schema
Open

db_migration: Migrated CandidateStateInDb.match pickle to proper table schema#297
semohr wants to merge 14 commits into
release/2.0.0from
match_db_schema

Conversation

@semohr
Copy link
Copy Markdown
Collaborator

@semohr semohr commented Apr 14, 2026

based on #296

This PR introduces a schema migration for the CandidateStateInDb.match column, replacing the legacy pickle-based storage with a structured representation. This adds the following tables mirroring beets structure:

  • AlbumMatchTrackMapping
  • TrackMatch
  • AlbumMatch
  • AlbumInfo
  • TrackInfo
  • Penalty
  • Distance

TODOs:

  • Setup rigorous testing for mapper layer. This is basically needed to ensure compatibility with future beets versions.

@github-actions
Copy link
Copy Markdown

Thank you for the PR! The changelog has not been updated, so here is a friendly reminder to check if you need to add an entry.

@semohr semohr requested a review from pSpitzner April 21, 2026 08:42
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