From 5774a000996a1034ff0e682adaf526faefdb1eaf Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 1 Nov 2017 18:30:55 +0100 Subject: [PATCH] Use if exists on dropping MAC table in postgres. Fixes bug #2314 --- bacula/src/cats/drop_postgresql_tables.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/cats/drop_postgresql_tables.in b/bacula/src/cats/drop_postgresql_tables.in index b34481d168..8e4f5e5d93 100644 --- a/bacula/src/cats/drop_postgresql_tables.in +++ b/bacula/src/cats/drop_postgresql_tables.in @@ -28,7 +28,7 @@ drop table Device; drop table Storage; drop table MediaType; drop table Status; -drop table MAC; +drop table if exists MAC; drop table log; drop table Location; drop table locationlog; -- 2.39.5