Commit c75da707 authored by Benjamin Eberlei's avatar Benjamin Eberlei

Merge branch 'DBAL-54' into 2.3

parents 40ebc9d8 e1c967c2
...@@ -463,7 +463,7 @@ class PostgreSqlPlatform extends AbstractPlatform ...@@ -463,7 +463,7 @@ class PostgreSqlPlatform extends AbstractPlatform
if ($sequence instanceof \Doctrine\DBAL\Schema\Sequence) { if ($sequence instanceof \Doctrine\DBAL\Schema\Sequence) {
$sequence = $sequence->getQuotedName($this); $sequence = $sequence->getQuotedName($this);
} }
return 'DROP SEQUENCE ' . $sequence; return 'DROP SEQUENCE ' . $sequence . ' CASCADE';
} }
/** /**
......
...@@ -155,7 +155,7 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase ...@@ -155,7 +155,7 @@ class PostgreSqlPlatformTest extends AbstractPlatformTestCase
$this->_platform->getCreateSequenceSQL($sequence) $this->_platform->getCreateSequenceSQL($sequence)
); );
$this->assertEquals( $this->assertEquals(
'DROP SEQUENCE myseq', 'DROP SEQUENCE myseq CASCADE',
$this->_platform->getDropSequenceSQL('myseq') $this->_platform->getDropSequenceSQL('myseq')
); );
$this->assertEquals( $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