Put IF EXISTS back in

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6987 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
the_undefined 2008-05-20 14:14:16 +00:00
parent 50a18a09c4
commit e8bd74946c

View file

@ -562,7 +562,7 @@ class DboMysql extends DboSource {
$out = '';
foreach ($schema->tables as $curTable => $columns) {
if (!$table || $table == $curTable) {
$out .= 'DROP TABLE ' . $this->fullTableName($curTable) . ";\n";
$out .= 'DROP TABLE IF EXISTS ' . $this->fullTableName($curTable) . ";\n";
}
}
return $out;