Commit c724523c authored by Craig Mason's avatar Craig Mason Committed by Benjamin Eberlei

Add test for SQL Server ALTER TABLE primary key issue

parent 5b390c7b
......@@ -221,4 +221,10 @@ class SQLServerPlatformTest extends AbstractPlatformTestCase
$idx->addFlag('nonclustered');
$this->assertEquals('ALTER TABLE tbl ADD PRIMARY KEY NONCLUSTERED (id)', $this->_platform->getCreatePrimaryKeySQL($idx, 'tbl'));
}
public function testAlterAddPrimaryKey()
{
$idx = new \Doctrine\DBAL\Schema\Index('idx', array('id'), false, true);
$this->assertEquals('ALTER TABLE tbl ADD PRIMARY KEY (id)', $this->_platform->getCreateIndexSQL($idx, 'tbl'));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment