From 50d957cff9193cf67d998eb5cf613bdf5fe8f398 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Mon, 6 May 2002 17:53:17 +0000 Subject: [PATCH] foreign_display_field --- ChangeLog | 2 ++ Documentation.html | 7 +++++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1660369a3..31661fe96 100755 --- a/ChangeLog +++ b/ChangeLog @@ -7,6 +7,8 @@ $Source$ 2002-05-06 Marc Delisle * lang/romanian.inc.php3 updates thanks to Valics Lehel + * lang/*, tbl_relation.php3, Documentation.html, + libraries/display_tbl.lib.php3: foreign_display_field 2002-05-05 Loïc Chapeaux * lang/thai.inc.php3: completed thanks to Arthit Suriyawongkul & diff --git a/Documentation.html b/Documentation.html index 4c920bdf8..4577b6919 100755 --- a/Documentation.html +++ b/Documentation.html @@ -590,6 +590,11 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://' make clickable, when you browse the master table, the data values that point to the foreign table; +
  • + display in an optional tooltip the "display field" + when browsing the master table, if + you move the mouse to a column containing a foreign key; +
  • display links on the table properties page, to check referential integrity (display missing foreign keys) for each described key; @@ -615,6 +620,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'        `master_field` varchar(32) NOT NULL default '',
           `foreign_table` varchar(32) NOT NULL default '',
           `foreign_field` varchar(32) NOT NULL default '',
    +        `foreign_display_field` varchar(32) NOT NULL default '',
           PRIMARY KEY (`master_table`,`master_field`)
         ) TYPE=MyISAM COMMENT='Table Relation';
    @@ -635,6 +641,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'      ALTER TABLE relation CHANGE src_column master_field VARCHAR(32) NOT NULL
         ALTER TABLE relation CHANGE dest_table foreign_table VARCHAR(32) NOT NULL
         ALTER TABLE relation CHANGE dest_column foreign_field VARCHAR(32) NOT NULL
    +      ALTER TABLE `relation` ADD `foreign_display_field` VARCHAR(32) NOT NULL;