mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
Crimes are now logging in db (#90948)
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> <!-- You can view Contributing.MD for a detailed description of the pull request process. --> ## About The Pull Request Crimes are now logged in db Logging:  <!-- Describe The Pull Request. Please be sure every change is documented or this can delay review and even discourage maintainers from merging your PR! --> ## Why It's Good For The Game idk we logging citations but not crimes, and i wanted to log the crimes too <!-- Argue for the merits of your changes and how they benefit the game, especially if they are controversial and/or far reaching. If you can't actually explain WHY what you are doing will improve the game, then it probably isn't good for the game in the first place. --> ## Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly mark your PRs to prevent unnecessary GBP loss. You can read up on GBP and its effects on PRs in the tgstation guides for contributors. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> 🆑 Rengan server: The crimes are now logging in the database. /🆑 <!-- Both 🆑's are required for the changelog to work! You can put your name to the right of the first 🆑 if you want to overwrite your GitHub username as author ingame. --> <!-- You can use multiple of the same prefix (they're only used for the icon ingame) and delete the unneeded ones. Despite some of the tags, changelogs should generally represent how a player might be affected by the changes rather than a summary of the PR's contents. -->
This commit is contained in:
@@ -5,15 +5,23 @@ Make sure to also update `DB_MAJOR_VERSION` and `DB_MINOR_VERSION`, which can be
|
||||
The latest database version is 5.28; The query to update the schema revision table is:
|
||||
|
||||
```sql
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 29);
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 30);
|
||||
```
|
||||
or
|
||||
|
||||
```sql
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 29);
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 30);
|
||||
```
|
||||
In any query remember to add a prefix to the table names if you use one.
|
||||
-----------------------------------------------------
|
||||
Version 5.30, 1 May 2025, by Rengan
|
||||
Adds `crime_desc` field to the `citation` table to save the description of the crime.
|
||||
|
||||
```sql
|
||||
ALTER TABLE `citation`
|
||||
ADD COLUMN `crime_desc` TEXT NULL DEFAULT NULL AFTER `crime`;
|
||||
```
|
||||
-----------------------------------------------------
|
||||
Version 5.29, 4 February 2024, by Tiviplus
|
||||
Fixed admin rank table flags being capped at 16 in the DB instead of 24 (byond max)
|
||||
|
||||
|
||||
@@ -115,6 +115,7 @@ CREATE TABLE IF NOT EXISTS `citation` (
|
||||
`sender_ic` varchar(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey',
|
||||
`recipient` varchar(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey',
|
||||
`crime` text NOT NULL,
|
||||
`crime_desc` text NULL DEFAULT NULL,
|
||||
`fine` int(4) DEFAULT NULL,
|
||||
`paid` int(4) DEFAULT 0,
|
||||
`timestamp` datetime NOT NULL,
|
||||
|
||||
@@ -115,6 +115,7 @@ CREATE TABLE IF NOT EXISTS `SS13_citation` (
|
||||
`sender_ic` varchar(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey',
|
||||
`recipient` varchar(64) NOT NULL DEFAULT '' COMMENT 'Longer because this is the character name, not the ckey',
|
||||
`crime` text NOT NULL,
|
||||
`crime_desc` text NULL DEFAULT NULL,
|
||||
`fine` int(4) DEFAULT NULL,
|
||||
`paid` int(4) DEFAULT 0,
|
||||
`timestamp` datetime NOT NULL,
|
||||
|
||||
Reference in New Issue
Block a user