Commit 4030787a authored by Guilherme Blanco's avatar Guilherme Blanco

Added coverage for DDC-1737.

parent 5f837d4a
Subproject commit 1c9d2ab329746637d1c6c058523ec1ee769da31c Subproject commit 17e774007b98beb2e253e645260e0f9c32f4c936
...@@ -64,4 +64,25 @@ class MySQLSchemaTest extends \PHPUnit_Framework_TestCase ...@@ -64,4 +64,25 @@ class MySQLSchemaTest extends \PHPUnit_Framework_TestCase
$this->assertEquals(array("ALTER TABLE test ADD CONSTRAINT FK_D87F7E0C8E48560F FOREIGN KEY (foo_id) REFERENCES test_foreign (foo_id)"), $sqls); $this->assertEquals(array("ALTER TABLE test ADD CONSTRAINT FK_D87F7E0C8E48560F FOREIGN KEY (foo_id) REFERENCES test_foreign (foo_id)"), $sqls);
} }
/**
* @group DDC-1737
*/
public function testClobNoAlterTable()
{
$tableOld = new Table("test");
$tableOld->addColumn('id', 'integer');
$tableOld->addColumn('description', 'string', array('length' => 65536));
$tableNew = clone $tableOld;
$tableNew->setPrimaryKey(array('id'));
$diff = $this->comparator->diffTable($tableOld, $tableNew);
$sql = $this->platform->getAlterTableSQL($diff);
$this->assertEquals(
array('ALTER TABLE test ADD PRIMARY KEY (id)'),
$sql
);
}
} }
\ No newline at end of file
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