Update and display column comments in Add/Edit Fieldmode and CREATE table mode. Display comments in table structure (optional) with underlined CSS-mouseovers. Display comments in browser mode (optional), both in vertical and horizontal display mode. Keep column comments in synch, when DROPping/ALTERing and moving/copying tables.
This commit is contained in:
@@ -192,6 +192,20 @@ if (isset($submit)) {
|
||||
$sql_query = $query_cpy . ';';
|
||||
unset($query_cpy);
|
||||
$message = $strTable . ' ' . htmlspecialchars($table) . ' ' . $strHasBeenCreated;
|
||||
|
||||
// garvin: If comments were sent, enable relation stuff
|
||||
require('./libraries/relation.lib.php3');
|
||||
|
||||
$cfgRelation = PMA_getRelationsParam();
|
||||
|
||||
// garvin: Update comment table, if a comment was set.
|
||||
if (is_array($field_comments) && $cfgRelation['commwork']) {
|
||||
@reset($field_comments);
|
||||
while(list($fieldindex, $fieldcomment) = each($field_comments)) {
|
||||
PMA_setComment($db, $table, $field_name[$fieldindex], $fieldcomment);
|
||||
}
|
||||
}
|
||||
|
||||
include('./' . $cfg['DefaultTabTable']);
|
||||
exit();
|
||||
} // end do create table
|
||||
|
Reference in New Issue
Block a user