Global values can only be INT

Game development with Board Game Arena Studio
Post Reply
JumpMaybe
Posts: 4
Joined: 20 June 2019, 14:25

Global values can only be INT

Post by JumpMaybe » 09 July 2019, 14:10

Hi,

I would like to store some comma separated values in the global_value column of the global table.
Currently its type is INT(11).

1) Is there any particular reason why this is an INT column? This is mentioned nowhere in docs nor is it enforced by the set functions.
Edit: ok, it is mentioned "Sometimes, you have to keep a single integer value that is global to your game, and you don't want to create a DB table specifically for it."
2) Is there a reason to advice against altering the column's type in dbmodel.sql to something like VARCHAR(20)? I tried this and the global functionality still seems to work.

Thanks, Koen

Post Reply

Return to “Developers”