mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 19:13:30 +01:00
Records unhandled in-game bug reports in a DB table and loads the reports from it for the next round (#30710)
* initial table setup * adds helpers to get full byond versions as numbers and adds those to the table as well * reorder bug report new() proc and init bug_report_data as empty list instead of null * more table changes. move adding the metadata to its own proc * record unsent bug reports into the DB table * refers to the correct index in the bug report data for the commit * flip user and server byond versions * jsonify bug report contents and metadata * makes a bug report subsystem and moves recording to it * Implements loading bug reports from the DB at shift start. Also removes handled bug reports from the DB directly * Update SSbugreports.dm * Update SSbugreports.dm * scopes the bug report recording proc to the subsystem
This commit is contained in:
committed by
GitHub
parent
32f4db8ab2
commit
1b2883e92e
@@ -666,3 +666,17 @@ CREATE TABLE `json_datum_saves` (
|
||||
UNIQUE INDEX `ckey_unique` (`ckey`, `slotname`) USING BTREE,
|
||||
INDEX `ckey` (`ckey`) USING BTREE
|
||||
) COLLATE = 'utf8mb4_general_ci' ENGINE = InnoDB;
|
||||
|
||||
--
|
||||
-- Table structure for table 'bug_reports'
|
||||
--
|
||||
DROP TABLE IF EXISTS `bug_reports`;
|
||||
CREATE TABLE `bug_reports` (
|
||||
`db_uid` BIGINT(32) NOT NULL,
|
||||
`author_ckey` varchar(32) NOT NULL,
|
||||
`title` MEDIUMTEXT COLLATE 'utf8mb4_general_ci',
|
||||
`round_id` int(11),
|
||||
`contents_json` LONGTEXT,
|
||||
CONSTRAINT bug_key PRIMARY KEY (`db_uid`,`author_ckey`) USING BTREE
|
||||
|
||||
) COLLATE = 'utf8mb4_general_ci' ENGINE = INNODB;
|
||||
|
||||
Reference in New Issue
Block a user