From 46491e4e30881fa41838ab32a0b5613886239a75 Mon Sep 17 00:00:00 2001 From: andryyy Date: Tue, 3 Nov 2020 11:13:16 +0100 Subject: [PATCH] [Web] Add type/action to quarantine table --- data/web/inc/init_db.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/web/inc/init_db.inc.php b/data/web/inc/init_db.inc.php index 1a1addde..a2e48ef6 100644 --- a/data/web/inc/init_db.inc.php +++ b/data/web/inc/init_db.inc.php @@ -3,7 +3,7 @@ function init_db_schema() { try { global $pdo; - $db_version = "24102020_0900"; + $db_version = "31102020_1810"; $stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); @@ -258,6 +258,7 @@ function init_db_schema() { "subject" => "VARCHAR(500)", "score" => "FLOAT(8,2)", "ip" => "VARCHAR(50)", + "type" => "ENUM('reject','header') DEFAULT 'reject'", "action" => "CHAR(20) NOT NULL DEFAULT 'unknown'", "symbols" => "JSON", "fuzzy_hashes" => "JSON",