fbctf icon indicating copy to clipboard operation
fbctf copied to clipboard

Enable all countries.

Open sbadakhc opened this issue 7 years ago • 2 comments

Hi,

Is there a way to enable all the countries by default?

Thanks, Sal.

sbadakhc avatar Feb 02 '18 11:02 sbadakhc

One way to workaround this might be to enable all the countries manually and then export the JSON file for future games.

sbadakhc avatar Feb 03 '18 10:02 sbadakhc

You can do this easily with MySQL using a terminal window.

  1. $ mysql -u ctf -p fbctf [ctf]

  2. explain countries;

  3. update countries set enabled = 1;

This will enable all countries. If you want to disable all countries, do this:

  1. update countries set enabled = 0;

Generally, playing around at the data layer is not advised, but the database structure is not very complicated, and this is a lot faster than clicking on them all individually. You may want to disable all of the countries, then use the GUI to enable only the countries you want to use.

gar0u avatar Sep 09 '18 01:09 gar0u