1
0
mirror of https://github.com/gogs/gogs.git synced 2025-05-02 13:41:37 +00:00
m2nlight aa53d0978c models: add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 ()
* Add ROW_FORMAT=DYNAMIC when creating table for supports mysql 5.6 (fix )

* 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
2018-03-09 15:44:07 -05:00

6 lines
234 B
SQL

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;