Skip to content

Commit

Permalink
Apply sugestion rob006.
Browse files Browse the repository at this point in the history
  • Loading branch information
terabytesoftw committed May 18, 2024
1 parent bd68552 commit f3f2f2b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion framework/db/Migration.php
Original file line number Diff line number Diff line change
Expand Up @@ -559,7 +559,7 @@ public function dropCheck($name, $table)
*/
public function addCommentOnColumn($table, $column, $comment)
{
$time = $this->beginCommand("drop comment on column $column");
$time = $this->beginCommand("add comment on column $column");
$this->db->createCommand()->addCommentOnColumn($table, $column, $comment)->execute();
$this->endCommand($time);
}
Expand Down
5 changes: 0 additions & 5 deletions tests/framework/db/mysql/CommandTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,4 @@ class CommandTest extends \yiiunit\framework\db\CommandTest
public $driverName = 'mysql';

protected $upsertTestCharCast = 'CONVERT([[address]], CHAR)';

public function testAddDropCheck()
{
$this->markTestSkipped('MySQL does not support adding/dropping check constraints.');
}
}

0 comments on commit f3f2f2b

Please sign in to comment.