From 4aabb738a3c8f337219f58ae698d055d0e3a06f8 Mon Sep 17 00:00:00 2001 From: duckietm Date: Wed, 27 May 2026 09:47:30 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=86=99=20Added=20missing=20Table=20for=20?= =?UTF-8?q?the=20HK?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../006_Allow_Housekeeping_in_Client.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Database Updates/006_Allow_Housekeeping_in_Client.sql b/Database Updates/006_Allow_Housekeeping_in_Client.sql index 42359fe0..f4d2053e 100644 --- a/Database Updates/006_Allow_Housekeeping_in_Client.sql +++ b/Database Updates/006_Allow_Housekeeping_in_Client.sql @@ -1 +1,17 @@ INSERT INTO `permission_definitions` (`permission_key`, `max_value`, `comment`, `rank_1`, `rank_2`, `rank_3`, `rank_4`, `rank_5`, `rank_6`, `rank_7`) VALUES ('acc_housekeeping', '1', 'Allow housekeeping in the client', '0', '0', '0', '0', '0', '0', '1'); + + +CREATE TABLE IF NOT EXISTS `housekeeping_log` ( + `id` INT NOT NULL AUTO_INCREMENT, + `timestamp` INT NOT NULL, + `actor_id` INT NOT NULL, + `actor_name` VARCHAR(64) NOT NULL DEFAULT '', + `target_type` VARCHAR(16) NOT NULL DEFAULT 'user', + `target_id` INT NOT NULL DEFAULT 0, + `target_label` VARCHAR(128) NOT NULL DEFAULT '', + `action` VARCHAR(64) NOT NULL DEFAULT '', + `detail` VARCHAR(500) NOT NULL DEFAULT '', + `success` TINYINT NOT NULL DEFAULT 1, + PRIMARY KEY (`id`), + KEY `timestamp` (`timestamp`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; \ No newline at end of file