From bcedd3a348607cd8f460c258fc04f7021f726142 Mon Sep 17 00:00:00 2001 From: Graham Knop Date: Wed, 9 Jul 2008 22:05:24 +0000 Subject: [PATCH] get rid of 'USE database;' lines from upgrade backups --- sbin/upgrade.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/upgrade.pl b/sbin/upgrade.pl index 9575483b6..0c8521080 100644 --- a/sbin/upgrade.pl +++ b/sbin/upgrade.pl @@ -203,7 +203,7 @@ foreach my $filename (keys %config) { my $cmd = qq!$dumpcmd -u"$config{$filename}{dbuser}" -p"$config{$filename}{dbpass}"!; $cmd .= " --host=".$config{$filename}{host} if ($config{$filename}{host}); $cmd .= " --port=".$config{$filename}{port} if ($config{$filename}{port}); - $cmd .= " --add-drop-table --databases ".$config{$filename}{db}." --result-file=" + $cmd .= " --add-drop-table ".$config{$filename}{db}." --result-file=" .$backupTo.$slash.$config{$filename}{db}."_".$upgrade{$upgrade}{from}.".sql"; unless (system($cmd)) { print "OK\n" unless ($quiet);