mirror of
https://github.com/Bratah123/Spirit-PTCGO.git
synced 2026-12-04 22:14:22 -06:00
for any developers seeing this commit, this shouldn't require any changes to your own server right now. It adds the ability for VPS hosted servers to utilize a better database system in the case of 100+ concurrent players
543 B
543 B
MariaDB / MySQL player database
spirit_ptcgo.sql creates the player database tables for MariaDB/MySQL.
Create an empty database, then import the file with a database account allowed to create tables:
CREATE DATABASE spirit_ptcgo CHARACTER SET utf8mb4 COLLATE utf8mb4_bin;
mysql -u db_admin -p spirit_ptcgo < sql/spirit_ptcgo.sql
Set DATABASE_URL in spirit/config.py to your connection URL, for example:
DATABASE_URL = "mysql+pymysql://spirit_user:password@db-host/spirit_ptcgo?charset=utf8mb4"