3 # shell script to delete Bacula tables for MySQL
8 if $bindir/mysql $* <<END-OF-DATA
10 DROP TABLE IF EXISTS Filename;
11 DROP TABLE IF EXISTS Path;
12 DROP TABLE IF EXISTS LongName;
13 DROP TABLE IF EXISTS Device;
14 DROP TABLE IF EXISTS Storage;
15 DROP TABLE IF EXISTS MediaType;
16 DROP TABLE IF EXISTS File;
17 DROP TABLE IF EXISTS Client;
18 DROP TABLE IF EXISTS Job;
19 DROP TABLE IF EXISTS JobHisto;
20 DROP TABLE IF EXISTS Media;
21 DROP TABLE IF EXISTS JobMedia;
22 DROP TABLE IF EXISTS Pool;
23 DROP TABLE IF EXISTS MultiVolume;
24 DROP TABLE IF EXISTS FileSave;
25 DROP TABLE IF EXISTS FileSet;
26 DROP TABLE IF EXISTS Version;
27 DROP TABLE IF EXISTS Counters;
28 DROP TABLE IF EXISTS BaseFiles;
29 DROP TABLE IF EXISTS UnsavedFiles;
30 DROP TABLE IF EXISTS CDImages;
31 DROP TABLE IF EXISTS Status;
32 DROP TABLE IF EXISTS MAC;
33 DROP TABLE IF EXISTS Log;
34 DROP TABLE IF EXISTS Location;
35 DROP TABLE IF EXISTS LocationLog;
38 echo "Deletion of ${db_name} MySQL tables succeeded."
40 echo "Deletion of ${db_name} MySQL tables failed."