diff --git a/SQL/database_changelog.txt b/SQL/database_changelog.txt index fa61cd3b3b1..4e22067444b 100644 --- a/SQL/database_changelog.txt +++ b/SQL/database_changelog.txt @@ -9,7 +9,30 @@ INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 16); In any query remember to add a prefix to the table names if you use one. ----------------------------------------------------- +<<<<<<< HEAD Version 5.16, 2 June 2021, by Mothblocks +======= +Version 5.16, 31 July 2021, by Atlanta-Ned +Added `library_action` table for tracking reported library books and actions taken on them. + +``` +DROP TABLE IF EXISTS `library_action`; +CREATE TABLE `library_action` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `book` int(10) unsigned NOT NULL, + `reason` longtext DEFAULT NULL, + `ckey` varchar(11) NOT NULL DEFAULT '', + `datetime` datetime NOT NULL DEFAULT current_timestamp(), + `action` varchar(11) NOT NULL DEFAULT '', + `ip_addr` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4; +``` + + +----------------------------------------------------- +Version 5.15, 2 June 2021, by Mothblocks +>>>>>>> ec2189370df (Adds the library_report table (#60599)) Added verified admin connection log used for 2FA ``` diff --git a/SQL/tgstation_schema.sql b/SQL/tgstation_schema.sql index 6573fbbbc3f..05beadeff8e 100644 --- a/SQL/tgstation_schema.sql +++ b/SQL/tgstation_schema.sql @@ -264,6 +264,25 @@ CREATE TABLE `library` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `library_action` +-- + +DROP TABLE IF EXISTS `library_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `library_action` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `book` int(10) unsigned NOT NULL, + `reason` longtext DEFAULT NULL, + `ckey` varchar(11) NOT NULL DEFAULT '', + `datetime` datetime NOT NULL DEFAULT current_timestamp(), + `action` varchar(11) NOT NULL DEFAULT '', + `ip_addr` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `messages` -- diff --git a/SQL/tgstation_schema_prefixed.sql b/SQL/tgstation_schema_prefixed.sql index 8a6cedc4242..0aa8248e95d 100644 --- a/SQL/tgstation_schema_prefixed.sql +++ b/SQL/tgstation_schema_prefixed.sql @@ -264,6 +264,25 @@ CREATE TABLE `SS13_library` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; /*!40101 SET character_set_client = @saved_cs_client */; +-- +-- Table structure for table `SS13_library_action` +-- + +DROP TABLE IF EXISTS `SS13_library_action`; +/*!40101 SET @saved_cs_client = @@character_set_client */; +/*!40101 SET character_set_client = utf8 */; +CREATE TABLE `SS13_library_action` ( + `id` int(11) unsigned NOT NULL AUTO_INCREMENT, + `book` int(10) unsigned NOT NULL, + `reason` longtext DEFAULT NULL, + `ckey` varchar(11) NOT NULL DEFAULT '', + `datetime` datetime NOT NULL DEFAULT current_timestamp(), + `action` varchar(11) NOT NULL DEFAULT '', + `ip_addr` int(11) NOT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4; +/*!40101 SET character_set_client = @saved_cs_client */; + -- -- Table structure for table `SS13_messages` --