mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-26 22:50:26 +01:00
Adds the library_report table (#7341)
Co-authored-by: Nick <nick@nfreader.net>
This commit is contained in:
@@ -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
|
||||
|
||||
```
|
||||
|
||||
@@ -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`
|
||||
--
|
||||
|
||||
@@ -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`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user