User forgot to define a index on master table
This commit is contained in:
@@ -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
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user