Details
Description
The default in MySQL < 5.7 used to be COMPACT, unfortunately COMPACT rows kept the old 767 limit for keys.
Here is an helper to do that manually prior to upgrade XWiki if the resize migration fail:
DATABASE=some_db ROW_FORMAT=DYNAMIC #ROW_FORMAT=COMPRESSED TABLES=$(echo SHOW TABLES | mysql -s $DATABASE) for TABLE in $TABLES ; do echo "ALTER TABLE $TABLE ROW_FORMAT=$ROW_FORMAT;" echo "ALTER TABLE $TABLE ROW_FORMAT=$ROW_FORMAT" | mysql $DATABASE done