#!/bin/sh
#
#  Drop Bacula tables -- works for whatever is configured,
#    MySQL, SQLite, or PostgreSQL
#
if test xsqlite = xsqlite3 -o xsqlite3 = xsqlite3 ; then
  /usr/local/bacula/scripts/drop_sqlite3_tables $*
  echo "Dropped SQLite tables"
else
  if test xmysql = xsqlite3 ; then 
    echo "Making MySQL tables"
    /usr/local/bacula/scripts/drop_mysql_tables $*
    echo "Dropped MySQL tables"
  else
    # hardcoded database name - should be a parameter
    /usr/local/bacula/scripts/drop_postgresql_tables $*
    echo "Dropped PostgreSQL tables"
  fi
fi