public function testDropPrimary() { $blueprint = new Blueprint('users'); $blueprint->dropPrimary('foo'); $statements = $blueprint->toSql($this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table "users" drop constraint foo', $statements[0]); }
public function testDropPrimary() { $blueprint = new Blueprint('users'); $blueprint->dropPrimary(); $statements = $blueprint->toSql($this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table `users` drop primary key', $statements[0]); }