From: Eric Bollengier Date: Thu, 21 Apr 2022 15:49:27 +0000 (+0200) Subject: Add SQL tables to store Malware database X-Git-Tag: Beta-15.0.0~472 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22255b42f37c441c26c796a84b9e4c08110c2d37;p=thirdparty%2Fbacula.git Add SQL tables to store Malware database --- diff --git a/bacula/src/cats/drop_postgresql_tables.in b/bacula/src/cats/drop_postgresql_tables.in index 1cc1730a8..bf6b85225 100644 --- a/bacula/src/cats/drop_postgresql_tables.in +++ b/bacula/src/cats/drop_postgresql_tables.in @@ -9,6 +9,9 @@ bindir=@POSTGRESQL_BINDIR@ db_name=@db_name@ $bindir/psql -f - -d ${db_name} $* </dev/null 2>/dev/null +drop table if exists MalwareMD5; +drop table if exists MalwareSHA256; +drop table if exists FileEvents; drop table if exists MetaEmail; drop table if exists MetaAttachment; drop table if exists TagJob; diff --git a/bacula/src/cats/make_postgresql_tables.in b/bacula/src/cats/make_postgresql_tables.in index 60570b72d..6f00712fb 100644 --- a/bacula/src/cats/make_postgresql_tables.in +++ b/bacula/src/cats/make_postgresql_tables.in @@ -16,21 +16,49 @@ db_name=${db_name:-@db_name@} psql -f - -d ${db_name} $* <