]> git.sur5r.net Git - bacula/bacula/commitdiff
Use if exists on dropping MAC table in postgres. Fixes bug #2314
authorKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 17:30:55 +0000 (18:30 +0100)
committerKern Sibbald <kern@sibbald.com>
Wed, 1 Nov 2017 18:03:59 +0000 (19:03 +0100)
bacula/src/cats/drop_postgresql_tables.in

index b34481d168c8034af0e908ae30104da06eeaef75..8e4f5e5d93468dafef8319a8532945af2060ae8b 100644 (file)
@@ -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;