diff options
-rw-r--r-- | scripts/mysql.sql | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/scripts/mysql.sql b/scripts/mysql.sql index 3aab6b7d..37b6899a 100644 --- a/scripts/mysql.sql +++ b/scripts/mysql.sql @@ -1,11 +1,10 @@ -SET @s = IF(version() < 8 OR version() LIKE '%MariaDB%', - 'SET GLOBAL innodb_file_per_table = ON, - innodb_file_format = Barracuda, - innodb_large_prefix = ON;', +SET @s = IF(version() < 8 OR (version() LIKE '%MariaDB%' AND version() < 10.3), + 'SET GLOBAL innodb_file_per_table = ON, + innodb_file_format = Barracuda, + innodb_large_prefix = ON;', 'SET GLOBAL innodb_file_per_table = ON;'); PREPARE stmt1 FROM @s; -EXECUTE stmt1; +EXECUTE stmt1; DROP DATABASE IF EXISTS gogs; CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci; - |