Commit cb9f1ad7 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge pull request #289 from PowerKiKi/DBAL-54-bis

[DBAL-54] [DBAL-420] Cannot drop schema using IDENTITY strategy in PostgreSQL
parents 4b659d32 f2842412
......@@ -505,7 +505,7 @@ class PostgreSqlPlatform extends AbstractPlatform
if ($sequence instanceof \Doctrine\DBAL\Schema\Sequence) {
$sequence = $sequence->getQuotedName($this);
}
return 'DROP SEQUENCE ' . $sequence;
return 'DROP SEQUENCE ' . $sequence . ' CASCADE';
}
/**
......
......@@ -195,7 +195,7 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
$this->_platform->getCreateSequenceSQL($sequence)
);
$this->assertEquals(
'DROP SEQUENCE myseq',
'DROP SEQUENCE myseq CASCADE',
$this->_platform->getDropSequenceSQL('myseq')
);
$this->assertEquals(
......
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