]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_database.in
Tweak insert_autokey to use unsigned int64 instead of signed int64.
[bacula/bacula] / bacula / src / cats / drop_bacula_database.in
index d4aed3e00e4a9624af00dde95bfa1b5530d86c3d..d542af0c3a0ff6f82ad5dc8b7648311374991bcc 100755 (executable)
@@ -1,19 +1,18 @@
 #!/bin/sh
 #
 #  Drop Bacula database -- works for whatever is configured,
-#    MySQL, SQLite, PostgreSQL
+#    MySQL, SQLite, PostgreSQL, Ingres
 #
-if test xsqlite = x@DB_NAME@ ; then
-  @scriptdir@/drop_sqlite_database
-  echo "Dropped SQLite database"
+if test xsqlite3 = x@DB_TYPE@ ; then
+  @scriptdir@/drop_@DB_TYPE@_database $*
 else
-  if test xmysql = x@DB_NAME@ ; then 
+  if test xmysql = x@DB_TYPE@ ; then 
     echo "Making MySQL database"
     @scriptdir@/drop_mysql_database $*
-    echo "Dropped MySQL database"
+  elif test xingres = x@DB_TYPE@ ; then
+    echo "Dropping Ingres database"
+    @scriptdir@/drop_ingres_database $*
   else
-    # hardcoded database name - should be a parameter
-    @scriptdir@/drop_postgresql_database bacula
-    echo "Dropped PostgreSQL database"
+    @scriptdir@/drop_postgresql_database $*
   fi
 fi