diff options
Diffstat (limited to 'libraries/classes/Types.php')
-rw-r--r-- | libraries/classes/Types.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/libraries/classes/Types.php b/libraries/classes/Types.php index 12f7a7e4cf..4c2b2eeb78 100644 --- a/libraries/classes/Types.php +++ b/libraries/classes/Types.php @@ -7,6 +7,8 @@ declare(strict_types=1); namespace PhpMyAdmin; +use PhpMyAdmin\Query\Compatibility; + use function __; use function _pgettext; use function array_diff; @@ -713,13 +715,21 @@ class Types */ public function getAttributes() { - return [ + $serverVersion = $this->dbi->getVersion(); + + $attributes = [ '', 'BINARY', 'UNSIGNED', 'UNSIGNED ZEROFILL', 'on update CURRENT_TIMESTAMP', ]; + + if (Compatibility::supportsCompressedColumns($serverVersion)) { + $attributes[] = 'COMPRESSED=zlib'; + } + + return $attributes; } /** |