#!/bin/sh
#
-# shell script to delete Bacula tables
+# shell script to delete Bacula tables for MySQL
bindir=@SQL_BINDIR@
-if $bindir/mysql <<END-OF-DATA
+if $bindir/mysql $* <<END-OF-DATA
USE bacula;
DROP TABLE IF EXISTS Filename;
DROP TABLE IF EXISTS Path;
DROP TABLE IF EXISTS MultiVolume;
DROP TABLE IF EXISTS FileSave;
DROP TABLE IF EXISTS FileSet;
+DROP TABLE IF EXISTS Version;
+DROP TABLE IF EXISTS Counters;
+DROP TABLE IF EXISTS BaseFiles;
+DROP TABLE IF EXISTS UnsavedFiles;
END-OF-DATA
then
- echo "Deletion of Bacula tables succeeded."
+ echo "Deletion of Bacula MySQL tables succeeded."
else
- echo "Deletion of Bacula tables failed."
+ echo "Deletion of Bacula MySQL tables failed."
fi
exit 0