Added missing drop table lines (labels_batches & labels_layouts)
authorPiotr Wejman <ropuch@bagno.be>
Wed, 9 Dec 2009 20:27:22 +0000 (21:27 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Sun, 20 Dec 2009 13:27:49 +0000 (14:27 +0100)
installer/data/mysql/labels_upgrade.pl

index 15d9b19..50e8bb5 100644 (file)
@@ -161,7 +161,9 @@ while (my $template = $sth3->fetchrow_hashref()) {
 # Drop old tables....
 
 $sth->do("DROP TABLE IF EXISTS labels;") or die "DB ERROR: " . $sth->errstr . "\n";
+$sth->do("DROP TABLE IF EXISTS labels_batches;") or die "DB ERROR: " . $sth->errstr . "\n";
 $sth->do("DROP TABLE IF EXISTS labels_conf;") or die "DB ERROR: " . $sth->errstr . "\n";
+$sth->do("DROP TABLE IF EXISTS labels_layouts;") or die "DB ERROR: " . $sth->errstr . "\n";
 $sth->do("DROP TABLE IF EXISTS labels_profile;") or die "DB ERROR: " . $sth->errstr . "\n";
 $sth->do("DROP TABLE IF EXISTS labels_templates;") or die "DB ERROR: " . $sth->errstr . "\n";
 $sth->do("DROP TABLE IF EXISTS printers_profile;") or die "DB ERROR: " . $sth->errstr . "\n";