MySQL migration script: Remove modification for column that no longer exists in Orleans 7 #8314
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.
Problem:
The provided MySQL persistence DB migration script includes a line left over from the Orleans 3.x version, which is no longer applicable to Orleans 7.
As part of the Orleans 7 changes, the
OrleansStorage
table no longer contains thePayloadJson
orPayloadXml
columns; it should now only contain thePayloadBinary
column.The line I have removed would try to make a modification on the
PayloadJson
column, on versions of MySQL 5.7.8 or greater. Assuming you are running the migration on a blank DB, using theCREATE TABLE
statement in this script to create yourOrleansStorage
table, this column will not exist, and thisALTER TABLE
line will therefore fail to modify the column.I suspect it got missed off because the MySQL conditional version syntax makes it look a lot like the line is commented out, when really it just runs on certain versions of MySQL.
I have not found an equivalent issue in any of the other scripts.
Solution:
The solution is just to remove the line, it is no longer necessary.
Tests:
I have run this script and it behaves as expected.
Note: I have not found any associated Github issues that this links to.