-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Create Proper Migration tests #15116
Conversation
TODO:
|
OK it's wired in.. The structure is a bit of a hack with the current inferior migration tests still being run from integrations/migration-test - these should probably be either moved in to migrations as proper tests or just removed once we have enough tests to be happy that they are no longer needed. |
Oh that's interesting there's a bug with drop table columns on mssql ... |
7ef866d
to
ea74c42
Compare
Unfortunately our testing regime has so far meant that migrations do not get proper testing. This PR begins the process of creating migration tests for this. Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
ea74c42
to
dbc396d
Compare
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
Signed-off-by: Andrew Thornton <art27@cantab.net>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding these! 💯
Do you think it would be good practice to add a comment block at the top of v176_test.go
and v177_test.go
to explain at high level what the migrations intend to do? Ex. "create index X", etc.
I think such comments would probably be better on the migration functions themselves. |
Signed-off-by: Andrew Thornton <art27@cantab.net>
Unfortunately our testing regime has so far meant that migrations do not
get proper testing.
This PR begins the process of creating migration tests for this.
Signed-off-by: Andrew Thornton art27@cantab.net