コード例 #1
0
 /**
  * @depends testAddColumnComment
  */
 public function testRemoveColumnComment()
 {
     $table = new \Phinx\Db\Table('table1', array(), $this->adapter);
     $table->addColumn('field1', 'string', array('comment' => 'Comments from column "field1"'))->save();
     $table->changeColumn('field1', 'string', array('comment' => 'null'))->save();
     $resultComment = $this->adapter->getColumnComment('table1', 'field1');
     $this->assertEmpty($resultComment, 'Dont remove column comment correctly');
 }