Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
This PR refactors the SQL migrations for old DB versions. Previously these migrations happened out of order and were split between schema changes and data updates. This was done because some SQLAlchemy read operations would otherwise fail due to an incompatible schema1. This refactor rearranges these migrations into chronological order. This was done, because
Note for reviewers: The changes were intentionally split into small commits that should be easily verifiable individually, because they make small changes that should change nothing about the correctness of the migration steps.
Note for reviewers 2: This is based on #1294.
Tasks Completed
Footnotes
this was fixed in f28adfd ↩