Fix Issue #2816 - MySQL version typo
This commit is contained in:
parent
0e8ae82a5c
commit
a052fe4a98
1 changed files with 2 additions and 2 deletions
|
@ -165,8 +165,8 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
|
||||||
if ($action)
|
if ($action)
|
||||||
@$db->q($sql_config);
|
@$db->q($sql_config);
|
||||||
|
|
||||||
// MySQL >= 5.7 doesn't support the IGNORE keyword in ALTER TABLE statements
|
// MySQL >= 5.7.4 doesn't support the IGNORE keyword in ALTER TABLE statements
|
||||||
if (version_compare($db->getdb()->server_info, '5.7') >= 0) {
|
if (version_compare($db->getdb()->server_info, '5.7.4') >= 0) {
|
||||||
$ignore = '';
|
$ignore = '';
|
||||||
}else {
|
}else {
|
||||||
$ignore = ' IGNORE';
|
$ignore = ' IGNORE';
|
||||||
|
|
Loading…
Reference in a new issue