aboutsummaryrefslogtreecommitdiff
path: root/scripts/mysql.sql
blob: 3aab6b7daa740203db010127a7e5f91191eb7fb2 (plain)
1
2
3
4
5
6
7
8
9
10
11
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 GLOBAL innodb_file_per_table = ON;');
PREPARE stmt1 FROM @s;
EXECUTE stmt1; 

DROP DATABASE IF EXISTS gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;