ci: sync workflows from main branch (#6730)

This commit is contained in:
Joe Chen
2022-01-16 19:51:14 +08:00
committed by GitHub
parent 2626bcf94f
commit 01a2c68abb
52 changed files with 190 additions and 260 deletions

View File

@@ -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;