mirror of
https://github.com/gogs/gogs.git
synced 2025-12-20 15:20:01 +01:00
scripts/mysql: fix compatibility issue (#5786)
This commit is contained in:
@@ -1,5 +1,11 @@
|
|||||||
SET GLOBAL innodb_file_per_table = ON,
|
SET @s = IF(version() < 8 OR version() LIKE '%MariaDB%',
|
||||||
innodb_file_format = Barracuda,
|
'SET GLOBAL innodb_file_per_table = ON,
|
||||||
innodb_large_prefix = ON;
|
innodb_file_format = Barracuda,
|
||||||
|
innodb_large_prefix = ON;',
|
||||||
|
'SET GLOBAL innodb_file_per_table = ON;');
|
||||||
|
PREPARE stmt1 FROM @s;
|
||||||
|
EXECUTE stmt1;
|
||||||
|
|
||||||
DROP DATABASE IF EXISTS gogs;
|
DROP DATABASE IF EXISTS gogs;
|
||||||
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user