Permalink
Browse files

Issue #440

  • Loading branch information...
1 parent f083ee6 commit a5d63f5dca6667e581a5878f3487d024be057ec8 @Deesen committed Jan 18, 2016
Showing with 2 additions and 0 deletions.
  1. +2 −0 manager/actions/bkmanager.static.php
@@ -520,7 +520,9 @@ function createDump($callBack) {
$output .= "#{$lf}{$lf}";
// Generate DROP TABLE statement when client wants it to.
if($this->isDroptables()) {
+ $output .= "SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;{$lf}";
$output .= "DROP TABLE IF EXISTS `{$tblval}`;{$lf}";
+ $output .= "SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;{$lf}{$lf}";
}
$output .= "{$createtable[$tblval][0]};{$lf}";
$output .= $lf;

0 comments on commit a5d63f5

Please sign in to comment.