# MySQL or SQLite
#
if test xsqlite = x@DB_NAME@ ; then
- source ./drop_sqlite_tables
+ . ./drop_sqlite_tables
+ echo "Dropped SQLite tables"
else
- source ./drop_mysql_tables
+ if test xmysql = x@DB_NAME@ ; then
+ echo "Making MySQL tables"
+ . ./drop_mysql_tables
+ echo "Dropped MySQL tables"
+ else
+ # hardcoded database name - should be a parameter
+ . ./drop_postgresql_tables bacula
+ echo "Dropped PostgreSQL tables"
+ fi
fi