-
Notifications
You must be signed in to change notification settings - Fork 175
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
change parameter_file Value to longtext #7392
Conversation
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.
LGTM
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.
ALTER TABLE parameter_file MODIFY Value TEXT; |
21.0_To_22.0_upgrade.sql has the issue, so it is better to modify the patch file directly.
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.
need works
Why is this being changed? |
OK I see your point. @kongtiaowang Your point would help the the following 2. I can add it later today.
|
@@ -35,7 +35,7 @@ SELECT 'Running: SQL/Archive/22.0/2019-07-04-remove_header_row_from_parameter_fi | |||
|
|||
DELETE FROM parameter_file WHERE ParameterTypeID=(SELECT ParameterTypeID FROM parameter_type WHERE Name='header' AND SourceFrom='parameter_file'); | |||
DELETE FROM parameter_type WHERE Name='header' AND SourceFrom='parameter_file'; | |||
ALTER TABLE parameter_file MODIFY Value TEXT; | |||
|
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.
Hi @ycAbout SQL/New_patches/2021-03-15_change_parameter_file_Value_longtext.sql is good.
But "ALTER TABLE parameter_file MODIFY Value LONGTEXT;" should be here.
Just running one release patch file once,if user only wants to update Loris from 21 to 22.
release patch needs a new patch to update, that doesn't make sense.
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.
Hi @kongtiaowang , I see what you mean. Without this line, user doesn't need to apply a v24 release patch to upgrade to v22. The reason to remove this line is that v18 already has this line handled. On the other hand, do the way you suggested won't do much harm. I can change it.
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.
LGTM
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.
This should not modify the release patch for a release that already exists.
OK, |
The change has been reverted, so there is no modification of released patches. @driusan |
Change parameter_file Value to longtext. This was previously modified in the schema but the patch for existing projects was missed.
Brief summary of changes
Add a sql patch to change parameter_file Value to longtext for upgrade.
Testing instructions (if applicable)
Link(s) to related issue(s)
cc
@gdevenyi