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:
authorRouslan Placella <rouslan@placella.com>2013-01-08 03:44:58 +0400
committerRouslan Placella <rouslan@placella.com>2013-01-08 03:44:58 +0400
commitbc7bb2d038f692e896ac6849787879f72153be8d (patch)
tree09efef71fb3e6ee7ba0a1b91527bac5fe7282e8a /tbl_indexes.php
parente0eb0f7ece39e62110fc194eb985f7fadf8a807f (diff)
Implemented rfe #3599046 - Added comments for indexes
Diffstat (limited to 'tbl_indexes.php')
-rw-r--r--tbl_indexes.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/tbl_indexes.php b/tbl_indexes.php
index 6cac0f6207..6a8a38e28c 100644
--- a/tbl_indexes.php
+++ b/tbl_indexes.php
@@ -99,6 +99,7 @@ if (isset($_REQUEST['do_save_data'])) {
$sql_query .= ' (' . implode(', ', $index_fields) . ')';
}
+ $sql_query .= "COMMENT '" . PMA_Util::sqlAddSlashes($index->getComment()) . "'";
$sql_query .= ';';
if (! $error) {
@@ -222,6 +223,18 @@ echo PMA_Util::showHint(
<div>
<div class="label">
<strong>
+ <label for="input_index_comment">
+ <?php echo __('Comment:'); ?>
+ </label>
+ </strong>
+ </div>
+ <input type="text" name="index[Index_comment]" id="input_index_comment" size="30"
+ value="<?php echo htmlspecialchars($index->getComment()); ?>"
+ onfocus="this.select()" />
+ </div>
+ <div>
+ <div class="label">
+ <strong>
<label for="select_index_type">
<?php echo __('Index type:'); ?>
<?php echo PMA_Util::showMySQLDocu('SQL-Syntax', 'ALTER_TABLE'); ?>