public function SchemaDatabaseSchema_mysql::updateTableComment in Schema 8
Overrides DatabaseSchemaInspectionInterface::updateTableComment
File
- src/
SchemaDatabaseSchema_mysql.php, line 67 - Schema module enhancements to DatabaseSchema_mysql
Class
Namespace
Drupal\schemaCode
public function updateTableComment($table_name, $comment) {
$table_name = $this
->getPrefixInfo($table_name)['table'];
$sql = 'ALTER TABLE {' . $table_name . '} COMMENT ' . $this
->prepareTableComment($comment);
$this->connection
->query($sql);
}