Permalink
Browse files

Implemented rfe #3599046 - Added comments for indexes

  • Loading branch information...
1 parent e0eb0f7 commit bc7bb2d038f692e896ac6849787879f72153be8d @roccivic roccivic committed Jan 7, 2013
Showing with 14 additions and 0 deletions.
  1. +1 −0 ChangeLog
  2. +13 −0 tbl_indexes.php
View
1 ChangeLog
@@ -83,6 +83,7 @@ VerboseMultiSubmit, ReplaceHelpImg
- Bug #3576788 Grid editing shows the value before silent truncation
- Upgraded jqPlot to 1.0.4 r1121
- Upgraded to jquery-ui-timepicker-addon 1.1.1
++ rfe #3599046 [interface] Added comments for indexes
3.5.6.0 (not yet released)
- bug #3593604 [status] Erroneous advisor rule
View
13 tbl_indexes.php
@@ -99,6 +99,7 @@
$sql_query .= ' (' . implode(', ', $index_fields) . ')';
}
+ $sql_query .= "COMMENT '" . PMA_Util::sqlAddSlashes($index->getComment()) . "'";
$sql_query .= ';';
if (! $error) {
@@ -222,6 +223,18 @@
<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'); ?>

0 comments on commit bc7bb2d

Please sign in to comment.