ON DELETE ON UPDATE
This commit is contained in:
@@ -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.
|
||||
|
@@ -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'];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user