ON DELETE ON UPDATE

This commit is contained in:
Marc Delisle
2003-08-31 12:03:32 +00:00
parent 07901644c4
commit 3127edeba3
2 changed files with 7 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ $Source$
2003-08-31 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php3: extract ON DELETE, ON UPDATE for FOREIGN KEYs
* libraries/relation.lib.php3: populate $foreign with ON DELETE, ON UPDATE
2003-08-28 Alexander M. Turek <rabus@users.sourceforge.net>
* README: Updated php / MySQL versions.

View File

@@ -331,6 +331,12 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
}
$foreign[$field]['foreign_table'] = $one_key['ref_table_name'];
$foreign[$field]['foreign_field'] = $one_key['ref_index_list'][$i];
if (isset($one_key['on_delete'])) {
$foreign[$field]['on_delete'] = $one_key['on_delete'];
}
if (isset($one_key['on_update'])) {
$foreign[$field]['on_update'] = $one_key['on_update'];
}
}
}
}