From 362566222c24ffdcbba0be7aa0705d28ffb0476f Mon Sep 17 00:00:00 2001 From: Couls Date: Thu, 11 Jul 2019 17:02:52 -0400 Subject: [PATCH] SQL changes --- SQL/paradise_schema.sql | 2 +- SQL/updates/6-7.sql | 2 ++ config/example/dbconfig.txt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 SQL/updates/6-7.sql diff --git a/SQL/paradise_schema.sql b/SQL/paradise_schema.sql index e0f33226e8c..19521d79686 100644 --- a/SQL/paradise_schema.sql +++ b/SQL/paradise_schema.sql @@ -254,7 +254,7 @@ CREATE TABLE `player` ( `UI_style_alpha` smallint(4) DEFAULT '255', `be_role` mediumtext, `default_slot` smallint(4) DEFAULT '1', - `toggles` mediumint(8) DEFAULT '383', + `toggles` int(8) DEFAULT '383', `sound` mediumint(8) DEFAULT '31', `randomslot` tinyint(1) DEFAULT '0', `volume` smallint(4) DEFAULT '100', diff --git a/SQL/updates/6-7.sql b/SQL/updates/6-7.sql new file mode 100644 index 00000000000..c871302b2de --- /dev/null +++ b/SQL/updates/6-7.sql @@ -0,0 +1,2 @@ +ALTER TABLE player +MODIFY COLUMN toggles int; \ No newline at end of file diff --git a/config/example/dbconfig.txt b/config/example/dbconfig.txt index 8b411db15e1..fc1bced9d6a 100644 --- a/config/example/dbconfig.txt +++ b/config/example/dbconfig.txt @@ -9,7 +9,7 @@ ## This value must be set to the version of the paradise schema in use. ## If this value does not match, the SQL database will not be loaded and an error will be generated. ## Roundstart will be delayed. -DB_VERSION 6 +DB_VERSION 7 ## Server the MySQL database can be found at. # Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.