Browse Source

Fix Issue #2816 - MySQL version typo

pull/2836/head
Hypolite Petovan 5 years ago
parent
commit
a052fe4a98
  1. 4
      include/dbstructure.php

4
include/dbstructure.php

@ -165,8 +165,8 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
if ($action)
@$db->q($sql_config);
// MySQL >= 5.7 doesn't support the IGNORE keyword in ALTER TABLE statements
if (version_compare($db->getdb()->server_info, '5.7') >= 0) {
// MySQL >= 5.7.4 doesn't support the IGNORE keyword in ALTER TABLE statements
if (version_compare($db->getdb()->server_info, '5.7.4') >= 0) {
$ignore = '';
}else {
$ignore = ' IGNORE';

Loading…
Cancel
Save