Permalink
Browse files

Add cascade to drop schema command. This ensures a schema is dropped …

…even if it contains tables.
  • Loading branch information...
1 parent 87c0974 commit 755a2d47e6f7cc878a8417ab88fc480f56cc57bc @posulliv committed Aug 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Doctrine/DBAL/Platforms/AkibanServerPlatform.php
@@ -222,7 +222,7 @@ public function getCreateDatabaseSQL($name)
*/
public function getDropDatabaseSQL($name)
{
- return 'DROP SCHEMA ' . $name;
+ return "DROP SCHEMA " . $name . " CASCADE";
}
/**

0 comments on commit 755a2d4

Please sign in to comment.