Skip to content

SEARCH-740 (I): Update mbdata for v30 of the musicbrainz-server schema#71

Merged
reosarevok merged 5 commits intomainfrom
schema-change-2025-q2
May 12, 2025
Merged

SEARCH-740 (I): Update mbdata for v30 of the musicbrainz-server schema#71
reosarevok merged 5 commits intomainfrom
schema-change-2025-q2

Conversation

@reosarevok
Copy link
Copy Markdown
Member

@reosarevok reosarevok commented May 2, 2025

Testing

I tested the mbdata (and mb-rngpy) versions when testing metabrainz/sir#160 and it seemed to work well.

@reosarevok reosarevok force-pushed the schema-change-2025-q2 branch 2 times, most recently from f1aec5a to 2282e68 Compare May 5, 2025 15:33
Copy link
Copy Markdown
Member

@mwiencek mwiencek left a comment

Choose a reason for hiding this comment

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

LGTM

@reosarevok reosarevok requested a review from yvanzo May 6, 2025 07:51
@reosarevok reosarevok force-pushed the schema-change-2025-q2 branch from 2282e68 to 7907948 Compare May 8, 2025 19:54
@reosarevok reosarevok changed the title Update mbdata for v30 of the musicbrainz-server schema SEARCH-740 (I): Update mbdata for v30 of the musicbrainz-server schema May 12, 2025
Copy link
Copy Markdown
Contributor

@yvanzo yvanzo left a comment

Choose a reason for hiding this comment

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

Thank you for caring about it. Made some comments.

This allows us to pull from temporary branches to update the SQL
before the schema change.

We default to the latest schema change tag to avoid accidentally
pulling in pending master changes.
There's no clear use to keeping the update files around
and pushing them to the repo, since they are not used
for anything in mbdata and their only use is anyway to
carry out schema changes.

This also drops the existing contents of the update folder.
Newer versions of poetry only support Python 3.9+.
Run

     ./scripts/update_sql.sh schema-change-2025-q2
Run

     ./scripts/update_models.sh
@reosarevok reosarevok force-pushed the schema-change-2025-q2 branch from 7907948 to e579247 Compare May 12, 2025 12:21
Copy link
Copy Markdown
Contributor

@yvanzo yvanzo left a comment

Choose a reason for hiding this comment

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

Thank you.

(I didn’t test using it.)

@reosarevok reosarevok merged commit 6e7b6e5 into main May 12, 2025
10 checks passed
@reosarevok reosarevok deleted the schema-change-2025-q2 branch May 12, 2025 12:57
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.

3 participants