#!/bin/sh
#
-# Copyright (C) 2000-2015 Kern Sibbald
+# Copyright (C) 2000-2020 Kern Sibbald
# License: BSD 2-Clause; see file LICENSE-FOSS
#
# shell script to delete Bacula tables for PostgreSQL
db_name=@db_name@
$bindir/psql -f - -d ${db_name} $* <<END-OF-DATA 1>/dev/null 2>/dev/null
+drop table if exists Events;
drop table if exists unsavedfiles;
drop table if exists basefiles;
drop table if exists jobmedia;
+drop table if exists filemedia;
drop table if exists file;
drop table if exists job;
drop table if exists jobhisto;
drop table if exists pool;
drop table if exists fileset;
drop table if exists path;
-drop table if exists filename;
drop table if exists counters;
drop table if exists version;
drop table if exists CDImages;