Skip to content
Snippets Groups Projects
Commit c10676af authored by Demian Katz's avatar Demian Katz
Browse files

Added upgrade support for longtext fields.

parent 68359150
Branches
Tags
No related merge requests found
...@@ -425,7 +425,7 @@ class DbUpgrade extends AbstractPlugin ...@@ -425,7 +425,7 @@ class DbUpgrade extends AbstractPlugin
// If it's not a blob or a text (which don't have explicit sizes in our SQL), // If it's not a blob or a text (which don't have explicit sizes in our SQL),
// we should see what the character length is, if any: // we should see what the character length is, if any:
if ($type != 'blob' && $type != 'text') { if ($type != 'blob' && $type != 'text' && $type != 'longtext') {
$charLen = $column->getCharacterMaximumLength(); $charLen = $column->getCharacterMaximumLength();
if ($charLen) { if ($charLen) {
$type .= '(' . $charLen . ')'; $type .= '(' . $charLen . ')';
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment