Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2015-04-22 10:30:21 +0300
committerMadhura Jayaratne <madhura.cj@gmail.com>2015-04-22 10:30:21 +0300
commitf2015f5b20669ccdf8e1755cc93356d10a4495a3 (patch)
tree6884f67602aead6bd6f7ade5536c807189c9b723 /tbl_structure.php
parent0bc04da034f8508dcf7c3f315554b4ff624aaa08 (diff)
Add icon for columns with index
Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>
Diffstat (limited to 'tbl_structure.php')
-rw-r--r--tbl_structure.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/tbl_structure.php b/tbl_structure.php
index 66551de087..5bdc3ad9a6 100644
--- a/tbl_structure.php
+++ b/tbl_structure.php
@@ -170,7 +170,10 @@ require_once 'libraries/Index.class.php';
// 2. Gets table keys and retains them
// @todo should be: $server->db($db)->table($table)->primary()
$primary = PMA_Index::getPrimary($table, $db);
-
+$columns_with_index = PMA_getColumnsWithIndex(
+ $db, $table,
+ PMA_Index::UNIQUE | PMA_Index::INDEX | PMA_Index::SPATIAL | PMA_Index::FULLTEXT
+);
$columns_with_unique_index = PMA_getColumnsWithIndex($db, $table, PMA_Index::UNIQUE);
// 3. Get fields