Fix #15477 - Display referential integrity check for InnoDB

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-10-21 19:36:29 +02:00
parent 1a2cef1ae1
commit 4400350206
No known key found for this signature in database
GPG Key ID: 90A0EF1B8251A889

View File

@ -481,12 +481,8 @@ if (Partition::havePartitioning()) {
unset($partition_names);
// Referential integrity check
// The Referential integrity check was intended for the non-InnoDB
// tables for which the relations are defined in pmadb
// so I assume that if the current table is InnoDB, I don't display
// this choice (InnoDB maintains integrity by itself)
if ($cfgRelation['relwork'] && ! $pma_table->isEngine("INNODB")) {
if ($cfgRelation['relwork']) {
$GLOBALS['dbi']->selectDb($GLOBALS['db']);
$foreign = $relation->getForeigners($GLOBALS['db'], $GLOBALS['table'], '', 'internal');