コード例 #1
0
 public function testDropTimestamps()
 {
     $blueprint = new Blueprint('users');
     $blueprint->dropTimestamps();
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table "users" drop column "created_at", "updated_at"', $statements[0]);
 }