foreign_display_field

This commit is contained in:
Marc Delisle
2002-05-06 17:53:17 +00:00
parent 3acb8fc332
commit 50d957cff9
2 changed files with 9 additions and 0 deletions

View File

@@ -7,6 +7,8 @@ $Source$
2002-05-06 Marc Delisle <lem9@users.sourceforge.net>
* 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<4C>c Chapeaux <lolo@phpheaven.net>
* lang/thai.inc.php3: completed thanks to Arthit Suriyawongkul &

View File

@@ -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;
</li>
<li>
display in an optional tooltip the &quot;display field&quot;
when browsing the master table, if
you move the mouse to a column containing a foreign key;
</li>
<li>
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') . '://'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`master_field` varchar(32) NOT NULL default '',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`foreign_table` varchar(32) NOT NULL default '',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`foreign_field` varchar(32) NOT NULL default '',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;`foreign_display_field` varchar(32) NOT NULL default '',<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PRIMARY KEY (`master_table`,`master_field`)<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;) TYPE=MyISAM COMMENT='Table Relation';<br />
</tt>
@@ -635,6 +641,7 @@ $cfg['PmaAbsoluteUri'] = (!empty($HTTPS) ? 'https' : 'http') . '://'
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ALTER TABLE relation CHANGE src_column master_field VARCHAR(32) NOT NULL<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ALTER TABLE relation CHANGE dest_table foreign_table VARCHAR(32) NOT NULL<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ALTER TABLE relation CHANGE dest_column foreign_field VARCHAR(32) NOT NULL<br />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ALTER TABLE `relation` ADD `foreign_display_field` VARCHAR(32) NOT NULL;<br />
</tt><br />
</dd>