public function testDropUnique() { $blueprint = new Blueprint('users'); $blueprint->dropUnique('foo'); $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('drop index foo on "users"', $statements[0]); }
public function testDropUnique() { $blueprint = new Blueprint('users'); $blueprint->dropUnique('foo'); $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table "users" drop constraint foo', $statements[0]); }