]> git.sur5r.net Git - bacula/bacula/blob - bacula/src/cats/drop_bacula_tables.in
Fix bug in bvfs_update function, should work much better now
[bacula/bacula] / bacula / src / cats / drop_bacula_tables.in
1 #!/bin/sh
2 #
3 #  Drop Bacula tables -- works for whatever is configured,
4 #    MySQL, SQLite, Ingres, or PostgreSQL
5 #
6 if test xsqlite3 = x@DB_TYPE@ ; then
7   @scriptdir@/drop_@DB_TYPE@_tables $*
8   echo "Dropped SQLite tables"
9 else
10   if test xmysql = x@DB_TYPE@ ; then 
11     echo "Making MySQL tables"
12     @scriptdir@/drop_mysql_tables $*
13     echo "Dropped MySQL tables"
14   elif test xingres = x@DB_TYPE@ ; then
15     echo "Dropping Ingres tables"
16     @scriptdir@/drop_ingres_tables $*
17     echo "Dropped Ingres tables"
18   else
19     # hardcoded database name - should be a parameter
20     @scriptdir@/drop_postgresql_tables $*
21     echo "Dropped PostgreSQL tables"
22   fi
23 fi