diff --git a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php index 7588f19e8..15ce78560 100644 --- a/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php +++ b/lib/Cake/Test/Case/Model/Datasource/Database/PostgresTest.php @@ -676,8 +676,9 @@ class DboPostgresTest extends CakeTestCase { 'group2' => array('type' => 'integer', 'null' => true) ) )); - $this->Dbo->rawQuery($this->Dbo->dropSchema($schema1)); + $this->Dbo->rawQuery($this->Dbo->createSchema($schema1)); + $this->Dbo->rawQuery($this->Dbo->dropSchema($schema1)); $schema2 = new CakeSchema(array( 'name' => 'AlterTest2',