gogs/scripts
MichaIng b34d040c78
scripts: fix MySQL script for MariaDB >= 10.3.1 (#6424)
innodb_file_format and innodb_large_prefix have been deprecated with MariaDB v10.2 and removed with v10.3.1. They have been reintroduced with v10.4.3 but remain deprecated and unused:
- https://mariadb.com/kb/en/innodb-system-variables/#innodb_file_format
- https://mariadb.com/kb/en/innodb-system-variables/#innodb_large_prefix

Setting those variables on MariaDB >=10.3.1 leads to the following error:
"ERROR 1238 (HY000) at line 7: Variable 'innodb_file_format' is a read only variable"

Since semantic versioning patch versions cannot be compared via numeric operators, only the major + minor versions are compared against 10.3. Since v10.2.2 the defaults match the desired values, so there is only the single patch version 10.3.0 where, when explicitly set differently via MariaDB configs, this commit could lead to an unwanted database format. In favour of a simple SQL change, this case is ignored.

This commit additionally removes trailing spaces and the doubled trailing empty line.

Signed-off-by: MichaIng <micha@dietpi.com>
2020-11-24 01:55:50 +08:00
..
init shellcheck: fix warnings (#6274) 2020-08-23 15:17:54 +08:00
launchd OS X launchd script 2016-01-13 19:32:07 +01:00
supervisor fix #1198 2015-07-28 15:30:14 +08:00
systemd scripts: add NoNewPrivileges=true to systemd unit file (#5381) 2018-08-16 19:07:36 +08:00
windows Simplify description 2017-02-15 22:29:31 -05:00
README #3393 fix missing sub-url prefix in relative avatar link 2016-08-07 10:13:05 -07:00
mysql.sql scripts: fix MySQL script for MariaDB >= 10.3.1 (#6424) 2020-11-24 01:55:50 +08:00

README

All files in subdirectories are templates, do modifications based on your environment first.