mirror of
https://github.com/vrana/adminer.git
synced 2025-08-07 15:16:44 +02:00
MySQL: Simplify condition in fk_support
This commit is contained in:
@@ -590,8 +590,7 @@ if (!defined('Adminer\DRIVER')) {
|
||||
* @return bool
|
||||
*/
|
||||
function fk_support($table_status) {
|
||||
return preg_match('~InnoDB|IBMDB2I~i', $table_status["Engine"])
|
||||
|| (preg_match('~NDB~i', $table_status["Engine"]) && min_version(5.6));
|
||||
return preg_match('~InnoDB|IBMDB2I' . (min_version(5.6) ? '|NDB' : '') . '~i', $table_status["Engine"]);
|
||||
}
|
||||
|
||||
/** Get information about fields
|
||||
|
Reference in New Issue
Block a user