aboutsummaryrefslogtreecommitdiff
path: root/scripts/mysql.sql
diff options
context:
space:
mode:
authorm2nlight <wingingbob@gmail.com>2018-03-10 04:44:07 +0800
committerjc <u@gogs.io>2018-03-09 15:44:07 -0500
commitaa53d0978c85818c954bb87990b389f8acd11c5e (patch)
tree3d97aa731af99e9613f705c29952e36e55fdc8dc /scripts/mysql.sql
parentffdd8b3afac9343bdd119368310190375682ff7a (diff)
models: add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 (#4913)
* Add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 (fix #4894) * Update models.go Rename NewEngine2 to NewEngineWithParams * Rename NewEngine2 to NewEngineWithParams Please update vendor when https://github.com/go-xorm/xorm/pull/798 closed. * Update dialect_mysql.go * Update dialect_mysql.go * Update models.go
Diffstat (limited to 'scripts/mysql.sql')
-rw-r--r--scripts/mysql.sql3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/mysql.sql b/scripts/mysql.sql
index 98e7bc39..e3f23ce0 100644
--- a/scripts/mysql.sql
+++ b/scripts/mysql.sql
@@ -1,2 +1,5 @@
+SET GLOBAL innodb_file_per_table = ON,
+ innodb_file_format = Barracuda,
+ innodb_large_prefix = ON;
DROP DATABASE IF EXISTS gogs;
CREATE DATABASE IF NOT EXISTS gogs CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;