[Web] Add type/action to quarantine table

master
andryyy 2020-11-03 11:13:16 +01:00
parent 7dc21e036d
commit 46491e4e30
No known key found for this signature in database
GPG Key ID: 8EC34FF2794E25EF
1 changed files with 2 additions and 1 deletions

View File

@ -3,7 +3,7 @@ function init_db_schema() {
try { try {
global $pdo; global $pdo;
$db_version = "24102020_0900"; $db_version = "31102020_1810";
$stmt = $pdo->query("SHOW TABLES LIKE 'versions'"); $stmt = $pdo->query("SHOW TABLES LIKE 'versions'");
$num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC)); $num_results = count($stmt->fetchAll(PDO::FETCH_ASSOC));
@ -258,6 +258,7 @@ function init_db_schema() {
"subject" => "VARCHAR(500)", "subject" => "VARCHAR(500)",
"score" => "FLOAT(8,2)", "score" => "FLOAT(8,2)",
"ip" => "VARCHAR(50)", "ip" => "VARCHAR(50)",
"type" => "ENUM('reject','header') DEFAULT 'reject'",
"action" => "CHAR(20) NOT NULL DEFAULT 'unknown'", "action" => "CHAR(20) NOT NULL DEFAULT 'unknown'",
"symbols" => "JSON", "symbols" => "JSON",
"fuzzy_hashes" => "JSON", "fuzzy_hashes" => "JSON",