-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Update flag_data column size #15502
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
Update flag_data column size #15502
Conversation
Hi @cherednichenkoa! This PR is really helpful, can you please review this and reformat accordingly? |
Hello @miguelbalparda , not sure that I got your point ? Do you want me to little refactor styling of the code, is it correct ? |
I see many white spaces that can be removed, however schema install body mostly moved to the separate methods and looks okay |
Sorry if I wasn't clear, this wasn't about code styling. We need to update the DB field and not modify its value.
|
Hello @miguelbalparda , Also, not sure that I got your point - We need to update the DB field and not modify its value. - I have updated column size, not the value |
You are right about the installer file, my bad. |
@miguelbalparda see my comment above regarding this concern, |
@dmanners can you help here? |
@aschrammel as we noticed above, it is impossible to change via update script especially in 2.2.3 with declarative schema |
Closing as inactive, feel free to reopen if anything changes in the future. |
This is still not fixed in mainline and still relevant. This has nothing to do with schema upgrades as it is a part of installer. Maybe it makes sense to increase column even more, to |
Hi @cherednichenkoa. Thank you for your contribution
For more details, please, review the Magento Contributor Assistant documentation |
Hi @orlangur, thank you for the review.
|
Closing in favor of #13580, |
Hi @cherednichenkoa, thank you for your contribution! |
data_flag column mostly used for config:import & config:dump console commands , one of the features is to save app:config:import data as a system_config_snapshot, if store has several scopes + multiple extensions, it can be not enough to save config snapshot
Description
This fix is related to config dump\import mechanism. If we run php bin/magento app:config:dump command, it saves snapshot of previous data to flag table with system_config_snapshot key. by default it is defined 64k.
I have faced this issue on 2.2.3 EE , I have 6 websites , and few custom extensions (not so much), however if I do app:config:import it generates config with size around 95 Kb, so serialized data in this column will be cropped (it will save everything it can save from serialized field , 64 kb and that's all, other 20 kb of serialized string in my case will be lose ).
As I have just few custom system configs, I am assuming this issue will appear on every site that has more that 3-4 website
flag table has very small amount of entries so we can little increase size of this column without any memory issue (but we will be sure issue does not appear again)
Manual testing scenarios
Contribution checklist