mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 12:35:33 +01:00
Adds logging of the station manifest to the DB (#90993)
## About The Pull Request This adds a `manifest` table to the database, basically a databasified version of the `manifest.txt` log. ## Why It's Good For The Game This is less of a game feature and more of an admin & Statbus tool. We currently do not have a good way to see who played which character in a given round. This aims to fix that. ~~Drafted because I'm not sure on some of the typecasting for the `special` and `latejoin` columns, I would like someone to give that a once-over.~~ We good.
This commit is contained in:
@@ -292,6 +292,28 @@ CREATE TABLE `SS13_library_action` (
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=27 DEFAULT CHARSET=utf8mb4;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `SS13_manifest`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `SS13_manifest`;
|
||||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `SS13_manifest` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`server_ip` int(10) unsigned NOT NULL,
|
||||
`server_port` smallint(5) NOT NULL,
|
||||
`round_id` int(11) NOT NULL,
|
||||
`ckey` text NOT NULL,
|
||||
`character` text NOT NULL,
|
||||
`job` text NOT NULL,
|
||||
`special` text DEFAULT NULL,
|
||||
`latejoin` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`timestamp` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
-- Table structure for table `SS13_messages`
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user