New option - new column in database (upgradeTableDb)

Game development with Board Game Arena Studio
Post Reply
User avatar
Bids
Posts: 72
Joined: 02 April 2019, 18:10

New option - new column in database (upgradeTableDb)

Post 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.
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

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

Post 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.
User avatar
Bids
Posts: 72
Joined: 02 April 2019, 18:10

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

Post by Bids »

Thanks! that was exactly what I was expecting but I wanted to check it before breaking stuff ;)
Post Reply

Return to “Developers”