Commit 33aeaadd authored by beberlei's avatar beberlei

Temporary fix for issues appearing due to DBAL-2 reopening, found an actual...

Temporary fix for issues appearing due to DBAL-2 reopening, found an actual additional bug that is now fixed in PostgresSQL Schema Manager
parent 3caada2b
......@@ -325,17 +325,6 @@ class Comparator
}
}
foreach ($column1->getPlatformOptions() AS $optionName => $optionValue) {
if (!$column2->hasPlatformOption($optionName) || $optionValue != $column2->getPlatformOption($optionName)) {
$changedProperties[] = $optionName;
}
}
foreach ($column2->getPlatformOptions() AS $optionName => $optionValue) {
if (!$column1->hasPlatformOption($optionName)) {
$changedProperties[] = $optionName;
}
}
return $changedProperties;
}
......
......@@ -176,7 +176,7 @@ class PostgreSqlSchemaManager extends AbstractSchemaManager
$tableColumn['default'] = null;
}
if (stripos($tableColumn['default'], 'NULL') !== null) {
if ($tableColumn['default'] == 'NULL') {
$tableColumn['default'] = null;
}
......
......@@ -572,6 +572,8 @@ class ComparatorTest extends \PHPUnit_Framework_TestCase
public function testDetectChangeIdentifierType()
{
$this->markTestSkipped('DBAL-2 was reopened, this test cannot work anymore.');
$tableA = new Table("foo");
$tableA->addColumn('id', 'integer', array('platformOptions' => array('autoincrement' => false)));
......
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