From 3127edeba38ca320deeda8e434732fab3401365c Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sun, 31 Aug 2003 12:03:32 +0000 Subject: [PATCH] ON DELETE ON UPDATE --- ChangeLog | 1 + libraries/relation.lib.php3 | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 469ac2896a..593f9f4d27 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,7 @@ $Source$ 2003-08-31 Marc Delisle * 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 * README: Updated php / MySQL versions. diff --git a/libraries/relation.lib.php3 b/libraries/relation.lib.php3 index 3805c18549..518c84ebda 100644 --- a/libraries/relation.lib.php3 +++ b/libraries/relation.lib.php3 @@ -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']; + } } } } -- 2.11.4.GIT