#!/bin/sh
#
# This routine alters the appropriately configured
-# Bacula tables for PostgreSQL, 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 "Altering SQLite tables"
- @scriptdir@/update_sqlite_tables
+ @scriptdir@/update_@DB_TYPE@_tables $*
fi
-if test xmysql = x@DB_NAME@ ; then
+if test xmysql = x@DB_TYPE@ ; then
echo "Altering MySQL tables"
- @scriptdir@/update_mysql_tables
+ @scriptdir@/update_mysql_tables $*
fi
-if test xpostgresql = x@DB_NAME@ ; then
+if test xingres = x@DB_TYPE@ ; then
+ echo "Altering Ingres tables"
+ @scriptdir@/update_ingres_tables $*
+fi
+if test xpostgresql = x@DB_TYPE@ ; then
echo "Altering PostgreSQL tables"
- # we need the bacula datbase name in here... Should not be hardcoded
- @scriptdir@/update_postgresql_tables bacula
+ @scriptdir@/update_postgresql_tables $*
fi