protected function SchemaMigrator::fixTableComment in Schema 8
1 call to SchemaMigrator::fixTableComment()
- SchemaMigrator::execute in src/
Migration/ SchemaMigrator.php
File
- src/
Migration/ SchemaMigrator.php, line 99 - Contains Drupal\schema\Migration\SchemaMigrator.
Class
- SchemaMigrator
- Modifies the database schema to match the declared schema.
Namespace
Drupal\schema\MigrationCode
protected function fixTableComment(TableComparison $table) {
if ($table
->isTableCommentDifferent()) {
$this->dbschema
->updateTableComment($table
->getTableName(), $table
->getDeclaredTableComment());
$this
->logSuccess("Updated comment for {table} to '{comment}'.", array(
'table' => $table
->getTableName(),
'comment' => $table
->getDeclaredTableComment(),
));
}
}