mirror of
https://github.com/friendica/friendica
synced 2025-04-25 22:30:10 +00:00
Fix Issue #2816 - Add backward compatible server_info support
This commit is contained in:
parent
a052fe4a98
commit
c1611fd3f6
2 changed files with 17 additions and 1 deletions
|
@ -166,7 +166,7 @@ function update_structure($verbose, $action, $tables=null, $definition=null) {
|
|||
@$db->q($sql_config);
|
||||
|
||||
// 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) {
|
||||
if (version_compare($db->server_info(), '5.7.4') >= 0) {
|
||||
$ignore = '';
|
||||
}else {
|
||||
$ignore = ' IGNORE';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue