diff options
Diffstat (limited to 'libraries/classes/Util.php')
-rw-r--r-- | libraries/classes/Util.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libraries/classes/Util.php b/libraries/classes/Util.php index 8338d8e003..0d39ca8bae 100644 --- a/libraries/classes/Util.php +++ b/libraries/classes/Util.php @@ -1373,6 +1373,7 @@ class Util $binary = false; $unsigned = false; $zerofill = false; + $compressed = false; } else { $enumSetValues = []; @@ -1394,6 +1395,8 @@ class Util $zerofill = ($zerofillCount > 0); $printType = (string) preg_replace('@unsigned@', '', $printType, -1, $unsignedCount); $unsigned = ($unsignedCount > 0); + $printType = (string) preg_replace('@\/\*!100301 compressed\*\/@', '', $printType, -1, $compressedCount); + $compressed = ($compressedCount > 0); $printType = trim($printType); } @@ -1410,6 +1413,10 @@ class Util $attribute = 'UNSIGNED ZEROFILL'; } + if ($compressed) { + $attribute = 'COMPRESSED=zlib'; + } + $canContainCollation = false; if (! $binary && preg_match('@^(char|varchar|text|tinytext|mediumtext|longtext|set|enum)@', $type)) { $canContainCollation = true; |