User forgot to define a index on master table

This commit is contained in:
Marc Delisle
2003-08-28 01:39:09 +00:00
parent 79dc25cb2f
commit 4c221e3de8
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,11 @@ phpMyAdmin - Changelog
$Id$
$Source$
2003-08-27 Marc Delisle <lem9@users.sourceforge.net>
* tbl_relation.php3: User forgot to define an index on the master table
before adding a foreign key constraint: trap the error, warn the user
and show him a link to the relevant doc
2003-08-27 Garvin Hicking <me@supergarv.de>
* lang/german*: Update

View File

@@ -120,6 +120,9 @@ if ($cfgRelation['relwork']
if (isset($upd_query)) {
$upd_rs = PMA_mysql_query($upd_query);
if (PMA_mysql_error() && mysql_errno() == 1005) {
echo '<p class="warning">' . $strNoIndex . ' (' . $master_field .')</p>' . PMA_showMySQLDocu('manual_Table_types', 'InnoDB_foreign_key_constraints') . "\n";
}
unset($upd_query);
}
} // end while