]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/drop_bacula_tables.in
remove GROUP BY on db_get_job_volume_names. REVIEW.
[bacula/bacula] / bacula / src / cats / drop_bacula_tables.in
index ebfb0be8a16d7473bd6f7031e3b285f5aef5cf07..2a1d2e62f74c4bc8ca326b5c4675a99b4c6dee90 100755 (executable)
@@ -4,9 +4,16 @@
 #    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
-  echo "Dropped 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