diff --git a/SQL/updates/1-2.sql b/SQL/updates/1-2.sql new file mode 100644 index 00000000000..c8a6dfcb47b --- /dev/null +++ b/SQL/updates/1-2.sql @@ -0,0 +1,4 @@ +#Updating the SQL from version 1 to version 2. -uraniummeltdown +#Adding new column to contain the clientfps value. +ALTER TABLE `player` + ADD `clientfps` smallint(4) DEFAULT '0' AFTER `exp`; \ No newline at end of file diff --git a/code/__DEFINES/misc.dm b/code/__DEFINES/misc.dm index 07771dbb680..867421d428c 100644 --- a/code/__DEFINES/misc.dm +++ b/code/__DEFINES/misc.dm @@ -362,4 +362,4 @@ #define BLOOD_STATE_NOT_BLOODY "no blood whatsoever" // The SQL version required by this version of the code -#define SQL_VERSION 1 +#define SQL_VERSION 2 diff --git a/code/modules/client/preference/preferences_mysql.dm b/code/modules/client/preference/preferences_mysql.dm index 7c6e14a7a49..f2a9d739cfe 100644 --- a/code/modules/client/preference/preferences_mysql.dm +++ b/code/modules/client/preference/preferences_mysql.dm @@ -47,7 +47,7 @@ windowflashing = text2num(query.item[14]) ghost_anonsay = text2num(query.item[15]) exp = query.item[16] - clientfps = query.item[17] + clientfps = text2num(query.item[17]) //Sanitize ooccolor = sanitize_hexcolor(ooccolor, initial(ooccolor)) diff --git a/config/example/dbconfig.txt b/config/example/dbconfig.txt index 837e1c5946c..a962b4b685c 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 1 +DB_VERSION 2 ## Server the MySQL database can be found at. # Examples: localhost, 200.135.5.43, www.mysqldb.com, etc.