Page 1 of 1

New option - new column in database (upgradeTableDb)

Posted: 31 January 2021, 20:55
by Bids
Hi!
I want to add a new option to my game that is already in Beta. For this I will add a column to the database scheme. This option is obviously only available for new games, so do I need to include upgradeTableDb in my game.php or this is not necessary because existing games are not affected?
Thanks a lot.

Re: New option - new column in database (upgradeTableDb)

Posted: 31 January 2021, 23:12
by RicardoRix
AFAIK, there is no need to the upgradeTableDb.

If you read this GameStateValue with your new code, for an old game it will return 0, so as long as that doesn't break anything at that time you're OK.

Re: New option - new column in database (upgradeTableDb)

Posted: 31 January 2021, 23:38
by Bids
Thanks! that was exactly what I was expecting but I wanted to check it before breaking stuff ;)