Skip to content
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

Correct Field size for magento_vcl #401

Closed
wants to merge 2 commits into from
Closed

Correct Field size for magento_vcl #401

wants to merge 2 commits into from

Conversation

algattsm
Copy link

The current file creates a table where the field size truncates to 65,535 bytes because it creates a "text" field. Changing this results in the field being created as a longtext field instead.

This will correct a problem where the module_vcl field truncates VCL larger than 65,535 bytes, the default size of a MySQL "text" field type. Changing this will create the field as a longtext field instead.
Copy link
Contributor

@MartinPeverelli MartinPeverelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change would only apply for new installs of the module, and not to current users.
Also, it would make the column of type LONGTEXT with a available size of 4GiB, which is not really desired.
I made a new PR with the proper upgrade and version bump, and with the Magento way of implementing MEDIUMTEXT type.

@salgattpx
Copy link
Contributor

@MartinPeverelli that's even better! I'd prefer mediumtext as well as that's what I used for testing. Shall I cancel this PR or are you planning to use this as a reference?

@vvuksan
Copy link
Contributor

vvuksan commented Aug 18, 2020

Closed in favor of #402

@vvuksan vvuksan closed this Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants