support key length in table copy/dump
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$Source$
|
||||
|
||||
2001-05-15 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* support key length in table copy/dump
|
||||
|
||||
2001-05-15 Armel Fauveau <armel.fauveau@globalis-ms.com>
|
||||
* Added "Bookmarked SQL-query" combo box when you click on a table (Feature #423065)
|
||||
|
||||
|
@@ -451,6 +451,8 @@ function get_table_def($db, $table, $crlf)
|
||||
{
|
||||
$kname=$row['Key_name'];
|
||||
$comment=$row['Comment'];
|
||||
$sub_part=$row['Sub_part'];
|
||||
|
||||
if(($kname != "PRIMARY") && ($row['Non_unique'] == 0))
|
||||
$kname="UNIQUE|$kname";
|
||||
|
||||
@@ -458,6 +460,10 @@ function get_table_def($db, $table, $crlf)
|
||||
$kname="FULLTEXT|$kname";
|
||||
if(!isset($index[$kname]))
|
||||
$index[$kname] = array();
|
||||
|
||||
if ($sub_part>1)
|
||||
$index[$kname][] = $row['Column_name'] . "(" . $sub_part . ")";
|
||||
else
|
||||
$index[$kname][] = $row['Column_name'];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user