mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 17:52:36 +00:00
Adds the library_report table (#60599)
* Adds the library_report table * Updating subsystem defines * fix table name * Update database_changelog.txt * Update tgstation_schema.sql * Update tgstation_schema_prefixed.sql Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: Jordie <4343468+Jordie0608@users.noreply.github.com>
This commit is contained in:
@@ -1,13 +1,32 @@
|
||||
Any time you make a change to the schema files, remember to increment the database schema version. Generally increment the minor number, major should be reserved for significant changes to the schema. Both values go up to 255.
|
||||
|
||||
The latest database version is 5.14; The query to update the schema revision table is:
|
||||
The latest database version is 5.16; The query to update the schema revision table is:
|
||||
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 15);
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 16);
|
||||
or
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 15);
|
||||
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.
|
||||
|
||||
-----------------------------------------------------
|
||||
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
|
||||
Added verified admin connection log used for 2FA
|
||||
|
||||
@@ -259,6 +259,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`
|
||||
--
|
||||
|
||||
@@ -259,6 +259,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`
|
||||
--
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
*
|
||||
* make sure you add an update to the schema_version stable in the db changelog
|
||||
*/
|
||||
#define DB_MINOR_VERSION 15
|
||||
#define DB_MINOR_VERSION 16
|
||||
|
||||
|
||||
//! ## Timing subsystem
|
||||
|
||||
Reference in New Issue
Block a user