Merge #15477 - display referential integrity checks for internal relations

Pull-request: #15477

Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
William Desportes 2019-10-28 22:25:22 +01:00
commit 5feb0ec989
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');