mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-09 07:54:14 +00:00
Add playtime tracking to notes (#55800)
* Added playertime tracking to player notes * Updated sql change log with revision * Fixed typo in db_query * And fixed another typo with query_get... * Add recomended changes from Jordie0608 * Added missing DEFAULT NULL to sql Co-authored-by: MissFox <github@aesir.org.uk>
This commit is contained in:
@@ -1,15 +1,22 @@
|
||||
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.11; The query to update the schema revision table is:
|
||||
The latest database version is 5.12; The query to update the schema revision table is:
|
||||
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 11);
|
||||
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 12);
|
||||
or
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 11);
|
||||
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 12);
|
||||
|
||||
In any query remember to add a prefix to the table names if you use one.
|
||||
|
||||
-----------------------------------------------------
|
||||
|
||||
Version 5.12, 29 December 2020, by Missfox
|
||||
Modified table `messages`, adding column `playtime` to show the user's playtime when the note was created.
|
||||
|
||||
ALTER TABLE `messages` ADD `playtime` INT(11) NULL DEFAULT(NULL) AFTER `severity`
|
||||
|
||||
-----------------------------------------------------
|
||||
|
||||
Version 5.11, 7 September 2020, by bobbahbrown, MrStonedOne, and Jordie0608
|
||||
|
||||
Adds indices to support search operations on the adminhelp ticket tables. This is to support improved performance on Atlanta Ned's Statbus.
|
||||
|
||||
@@ -255,6 +255,7 @@ CREATE TABLE `messages` (
|
||||
`secret` tinyint(1) unsigned NOT NULL,
|
||||
`expire_timestamp` datetime DEFAULT NULL,
|
||||
`severity` enum('high','medium','minor','none') DEFAULT NULL,
|
||||
`playtime` int(11) unsigned NULL DEFAULT NULL,
|
||||
`lasteditor` varchar(32) DEFAULT NULL,
|
||||
`edits` text,
|
||||
`deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
|
||||
@@ -255,6 +255,7 @@ CREATE TABLE `SS13_messages` (
|
||||
`secret` tinyint(1) unsigned NOT NULL,
|
||||
`expire_timestamp` datetime DEFAULT NULL,
|
||||
`severity` enum('high','medium','minor','none') DEFAULT NULL,
|
||||
`playtime` int(11) unsigned NULL DEFAULT NULL,
|
||||
`lasteditor` varchar(32) DEFAULT NULL,
|
||||
`edits` text,
|
||||
`deleted` tinyint(1) unsigned NOT NULL DEFAULT '0',
|
||||
|
||||
Reference in New Issue
Block a user