diff --git a/framework/db/Migration.php b/framework/db/Migration.php index 433d97d14fc..3f8c4ca73db 100644 --- a/framework/db/Migration.php +++ b/framework/db/Migration.php @@ -558,7 +558,7 @@ public function dropCheck($name, $table) */ 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); }