-
Notifications
You must be signed in to change notification settings - Fork 75
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
Frames used in migrations #1084
Comments
IIRC we've had a previous round of removing frames from migrations. I think most of the ones that remain are there for XML-parsing, e.g., |
👍 Could central-backend/lib/model/migrations/20211008-01-track-select-many-options.js Lines 57 to 61 in 7a1e080
|
It looks like |
I think this is similar to
Conceivably! Though it's a pretty simple use of the frame. Would you want to refactor the XML-parsing so that it doesn't touch frames at all? |
Yes, I think the ideal is that database migrations are independent of application code, because there is no guarantee which version of the application a particular migration is run with/by. This is especially risky for the application's code defining database structure (in this case frames). |
I'm still not sure how much risk there is in this case in practice, but I agree that what you describe would be ideal. And actually, looking at The |
"frames" reflect the current data model, which can change, whereas database migrations operate on historic models which should be fixed to the specific migration.
Observed
Expected
Migrations should not rely on application code for their understanding of the database schema.
The text was updated successfully, but these errors were encountered: