I would like to release update of the game with two new global variables (they are accessed during the game) and updated database schema. I have put some code for backward compatibility and tested it in studio where it works perfectly. But im not sure if it will work in real.
In case of new global variables in studio, even if they were not initialized, they worked. I noticed the proper column in table "global" occured, just after using even reading did not caused eny error.
For old games without new database schema, I used checks like this:
Will the behaviour will be the same in real?
Thanks
In case of new global variables in studio, even if they were not initialized, they worked. I noticed the proper column in table "global" occured, just after using
Code: Select all
self::setGameStateValue()For old games without new database schema, I used checks like this:
Code: Select all
$sql = "SHOW COLUMNS FROM `player` LIKE 'end_vote_send' ";
if ( !is_null(self::getUniqueValueFromDB( $sql)) ) ... Thanks