Skip to content

Commit

Permalink
Adds the feeedback column to admin (tgstation#45025)
Browse files Browse the repository at this point in the history
* Adds the feeedback column to `admin`

* edited changelog message for clarity

* increments db minor version define like you're meant to nednerd
  • Loading branch information
nfreader authored and Jordie0608 committed Jul 8, 2019
1 parent d18e951 commit 8f8dde4
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
12 changes: 9 additions & 3 deletions SQL/database_changelog.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
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.2; The query to update the schema revision table is:
The latest database version is 5.3; The query to update the schema revision table is:

INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 2);
INSERT INTO `schema_revision` (`major`, `minor`) VALUES (5, 3);
or
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 2);
INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (5, 3);

In any query remember to add a prefix to the table names if you use one.

----------------------------------------------------

Version 5.3, 6 July 2019, by Atlanta-Ned
Added a `feedback` column to the admin table, used for linking to individual admin feedback threads. Currently this is only used for statistics tracking tools such as Statbus and isn't used by the game.

ALTER TABLE `admin` ADD `feedback` VARCHAR(255) NULL DEFAULT NULL AFTER `rank`;

----------------------------------------------------

Version 5.2, 30 May 2019, by AffectedArc07
Added a field to the `player` table to track ckey and discord ID relationships
Expand Down
1 change: 1 addition & 0 deletions SQL/tgstation_schema.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DROP TABLE IF EXISTS `admin`;
CREATE TABLE `admin` (
`ckey` varchar(32) NOT NULL,
`rank` varchar(32) NOT NULL,
`feedback` varchar(255) DEFAULT NULL,
PRIMARY KEY (`ckey`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down
1 change: 1 addition & 0 deletions SQL/tgstation_schema_prefixed.sql
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ DROP TABLE IF EXISTS `SS13_admin`;
CREATE TABLE `SS13_admin` (
`ckey` varchar(32) NOT NULL,
`rank` varchar(32) NOT NULL,
`feedback` varchar(255) DEFAULT NULL,
PRIMARY KEY (`ckey`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;
Expand Down
2 changes: 1 addition & 1 deletion code/__DEFINES/subsystems.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//Update this whenever the db schema changes
//make sure you add an update to the schema_version stable in the db changelog
#define DB_MAJOR_VERSION 5
#define DB_MINOR_VERSION 2
#define DB_MINOR_VERSION 3


//Timing subsystem
Expand Down

0 comments on commit 8f8dde4

Please sign in to comment.