Replies: 2 comments 2 replies
-
I have the following proposal for the migration system. Migration system proposal (forward only, relative simple):We could introduce a migration mechanism by adding a dedicated table (e.g., Key aspects:
This mechanism would give us a safer and more structured way to:
Shortcomings & Considerations
|
Beta Was this translation helpful? Give feedback.
-
I've posted some code that is working for me, migrating an early database to be consistent with a newer one, here: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been looking into the current state of the Beets SQL(ite) database, and it’s clear that the schema could benefit from some refactoring and normalization. There are inconsistencies in the structure, and we’re missing indexes on columns that are frequently used in joins, both of which impact performance and maintainability.
To address this, I’d like to propose the introduction of a migration system.
A migration system would allow us to:
That said, I’m not yet certain what our specific requirements would be, or even if we all agree that such a system is necessary. This discussion is intended to explore whether others see value in this approach, and if so, what features or constraints we should consider when designing such a system.
At the very least, I believe we are currently lacking a documented and reliable method for applying schema changes across different versions without risking data integrity.
Would love to hear thoughts, concerns, or alternatives.
Beta Was this translation helpful? Give feedback.
All reactions