mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
Added conditional table dropping on test case start
Removed if exists statement from mysql driver git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6986 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
4eedbd536c
commit
50a18a09c4
2 changed files with 8 additions and 1 deletions
|
@ -562,7 +562,7 @@ class DboMysql extends DboSource {
|
|||
$out = '';
|
||||
foreach ($schema->tables as $curTable => $columns) {
|
||||
if (!$table || $table == $curTable) {
|
||||
$out .= 'DROP TABLE IF EXISTS ' . $this->fullTableName($curTable) . ";\n";
|
||||
$out .= 'DROP TABLE ' . $this->fullTableName($curTable) . ";\n";
|
||||
}
|
||||
}
|
||||
return $out;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue