ORM: allow MySQL variables to not exist

In current versions of MySQL and MariaDB `innodb_file_format`
and `innodb_large_prefix` have been removed. This allows them to not
exist and makes sure the format for the rows are `Dynamic` (default
for current versions).
This commit is contained in:
Chico Venancio
2019-08-30 13:00:56 -03:00
parent 917786f2f5
commit 096b159c23

View File

@@ -770,8 +770,8 @@ def mysql_large_prefix_check(engine):
).fetchall() ).fetchall()
) )
if ( if (
variables['innodb_file_format'] == 'Barracuda' variables.get('innodb_file_format', 'Barracuda') == 'Barracuda'
and variables['innodb_large_prefix'] == 'ON' and variables.get('innodb_large_prefix', 'ON') == 'ON'
): ):
return True return True
else: else: