MDL-59561 database: Update to creating new indexes in mysql.
authorAdrian Greeve <adrian@moodle.com>
Tue, 18 Jul 2017 02:24:21 +0000 (10:24 +0800)
committerAdrian Greeve <adrian@moodle.com>
Fri, 21 Jul 2017 01:27:08 +0000 (09:27 +0800)
commit3a8c98913757d534355166a54a43e86813371624
treeaac1da714818c414c32499aa2186a2289e55fc93
parent229ae617c55da7f938b52b6bf2ac9b19286a4827
MDL-59561 database: Update to creating new indexes in mysql.

When updating the mysql system to utf8mb4 not all tables are
converted to the row format of compressed or dynamic. If a new
index is created there is a possibility that the table could be
using compact or redundant and then an error will be shown saying
that the index size is too large. This fix handles this exception
and converts the table over to compressed.
lib/ddl/database_manager.php
lib/dml/mysqli_native_moodle_database.php