mirror of
https://github.com/jupyterhub/jupyterhub.git
synced 2025-10-15 14:03:02 +00:00
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:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user