diff --git a/framework/db/Migration.php b/framework/db/Migration.php index 433d97d14f..3f8c4ca73d 100644 --- a/framework/db/Migration.php +++ b/framework/db/Migration.php @@ -558,7 +558,7 @@ class Migration extends Component implements MigrationInterface */ public function addCommentOnColumn($table, $column, $comment) { - $time = $this->beginCommand("add comment on column $column"); + $time = $this->beginCommand("drop comment on column $column"); $this->db->createCommand()->addCommentOnColumn($table, $column, $comment)->execute(); $this->endCommand($time); }