]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/cats/make_bacula_tables.in
Tweak insert_autokey to use unsigned int64 instead of signed int64.
[bacula/bacula] / bacula / src / cats / make_bacula_tables.in
index 158ae3b8c69685ef329ae4363508792b7c16a48a..6d9221d1e9e4f5c59428ee4bb5a4292721835687 100755 (executable)
@@ -1,12 +1,20 @@
 #!/bin/sh
 #
 # This routine makes the appropriately configured
-#  Bacula tables for either MySQL or SQLite
+#  Bacula tables for PostgreSQL, Ingres, MySQL, or SQLite.
 #
-if test xsqlite = x@DB_NAME@ ; then
+if test xsqlite3 = x@DB_TYPE@ ; then
   echo "Making SQLite tables"
-  . ./make_sqlite_tables
+  @scriptdir@/make_@DB_TYPE@_tables $*
 else
-  echo "Making MySQL tables"
-  . ./make_mysql_tables
+  if test xmysql = x@DB_TYPE@ ; then 
+    echo "Making MySQL tables"
+    @scriptdir@/make_mysql_tables $*
+  elif test xingres = x@DB_TYPE@ ; then
+    echo "Making Ingres tables"
+    @scriptdir@/make_ingres_tables $*
+  else
+    echo "Making PostgreSQL tables"
+    @scriptdir@/make_postgresql_tables $*
+  fi
 fi