From b5a5640315ddcd94d2cf638f909e849c33c1c838 Mon Sep 17 00:00:00 2001 From: Roman Parpalak Date: Sat, 4 May 2024 00:40:53 +0300 Subject: [PATCH] Added old MySQL versions to tests. --- .github/workflows/test_mysql.yml | 23 +++++++++++++---------- _include/src/Model/Installer.php | 10 +++++----- 2 files changed, 18 insertions(+), 15 deletions(-) diff --git a/.github/workflows/test_mysql.yml b/.github/workflows/test_mysql.yml index a53aab33..9978e8cd 100644 --- a/.github/workflows/test_mysql.yml +++ b/.github/workflows/test_mysql.yml @@ -15,17 +15,20 @@ jobs: matrix: operating_system: ['ubuntu-22.04'] mysql_versions: - - 'mariadb-10.4' - - 'mariadb-10.5' - - 'mariadb-10.6' - - 'mariadb-10.11' - - 'mariadb-11.0' - - 'mariadb-11.1' - - 'mariadb-11.2' - - 'mariadb-11.3' +# - 'mariadb-10.4' +# - 'mariadb-10.5' +# - 'mariadb-10.6' +# - 'mariadb-10.11' +# - 'mariadb-11.0' +# - 'mariadb-11.1' +# - 'mariadb-11.2' +# - 'mariadb-11.3' +# - 'mariadb-11.4' + - '5.6' + - '5.7' - '8.0' - - '8.2' - - '8.3' +# - '8.2' +# - '8.3' php_versions: - '8.2' include: diff --git a/_include/src/Model/Installer.php b/_include/src/Model/Installer.php index 07194119..03340d1b 100644 --- a/_include/src/Model/Installer.php +++ b/_include/src/Model/Installer.php @@ -27,7 +27,7 @@ public function createTables(): void $schema = array( 'FIELDS' => array( 'name' => array( - 'datatype' => 'VARCHAR(255)', + 'datatype' => 'VARCHAR(191)', 'allow_null' => false, 'default' => '\'\'' ), @@ -291,8 +291,8 @@ public function createTables(): void ), 'PRIMARY KEY' => array('tag_id'), 'UNIQUE KEYS' => array( - 'name_idx' => array('name'), - 'url_idx' => array('url') + 'name_idx' => array('name(191)'), + 'url_idx' => array('url(191)') ) ); @@ -344,7 +344,7 @@ public function createTables(): void 'default' => '0' ), 'login' => array( - 'datatype' => 'VARCHAR(200)', + 'datatype' => 'VARCHAR(191)', 'allow_null' => true ), 'ip' => array( @@ -379,7 +379,7 @@ public function createTables(): void 'allow_null' => false ), 'login' => array( - 'datatype' => 'VARCHAR(200)', + 'datatype' => 'VARCHAR(191)', 'allow_null' => false, 'default' => '\'\'' ),