diff --git a/SQL/database_changelog.txt.rej b/SQL/database_changelog.txt.rej index 1b201ec4aa..b4ec2b6394 100644 --- a/SQL/database_changelog.txt.rej +++ b/SQL/database_changelog.txt.rej @@ -1,15 +1,36 @@ diff a/SQL/database_changelog.txt b/SQL/database_changelog.txt (rejected hunks) -@@ -1,10 +1,10 @@ - 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. +@@ -1,3 +1,12 @@ ++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 3.1; The query to update the schema revision table is: ++ ++INSERT INTO `schema_revision` (`major`, `minor`) VALUES (3, 1); ++or ++INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (3, 1); ++ ++---------------------------------------------------- --The latest database version is 3.1; The query to update the schema revision table is: -+The latest database version is 3.0; The query to update the schema revision table is: + 20th July 2017, by Shadowlight213 + Added role_time table to track time spent playing departments. +@@ -7,21 +16,10 @@ CREATE TABLE `role_time` ( `ckey` VARCHAR(32) NOT NULL , `job` VARCHAR(128) NOT --UPDATE `schema_revision` SET major = 3, minor = 1 LIMIT 1; -+INSERT INTO `schema_revision` (`major`, `minor`) VALUES (3, 0); - or --UPDATE `SS13_schema_revision` SET major = 3, minor = 1 LIMIT 1; -+INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (3, 0); + ALTER TABLE `player` ADD `flags` INT NOT NULL default '0' AFTER `accountjoindate`; + +-UPDATE `schema_revision` SET minor = 1; +- + Remember to add a prefix to the table name if you use them. ---------------------------------------------------- +-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 3.0; The query to update the schema revision table is: +- +-INSERT INTO `schema_revision` (`major`, `minor`) VALUES (3, 0); +-or +-INSERT INTO `SS13_schema_revision` (`major`, `minor`) VALUES (3, 0); +- +----------------------------------------------------- + 28 June 2017, by oranges + Added schema_revision to store the current db revision, why start at 3.0? +