1
Fork 0
mirror of https://github.com/wlinator/luminara.git synced 2024-10-02 18:23:12 +00:00

fix XP cooldowns with MariaDB

This commit is contained in:
wlinator 2023-10-23 17:35:40 +02:00
parent e38dd8abdb
commit 3a061746a4
3 changed files with 7 additions and 4 deletions

View file

@ -1,4 +1,4 @@
This branch uses Docker and MariaDB to run Racu. It has the exact same functionality within Discord.
There is an ".env.template" file, please copy it to `.env` and fill out the details if you want to host Racu yourself.
Beware that this branch is much more complicated than Racu when its ran locally with sqlite3, however it is more suitable if you plan to host Racu on a major scale with thousands or millions of Discord servers.
Beware that this branch is much more complicated than the main branch with sqlite3 & PM2, however it is more suitable if you plan to host Racu on a major scale with thousands or millions of Discord servers.

View file

@ -4,7 +4,7 @@ CREATE TABLE xp (
user_id BIGINT PRIMARY KEY NOT NULL,
user_xp INT NOT NULL,
user_level INT NOT NULL,
cooldown FLOAT
cooldown DECIMAL(15,2)
);
CREATE TABLE currency (

View file

@ -1,4 +1,4 @@
version: '3'
version: '3.8'
services:
core:
@ -18,7 +18,7 @@ services:
MARIADB_DATABASE: racudb
volumes:
- ./db/init:/docker-entrypoint-initdb.d/
- ./db/data:/var/lib/mysql
- dbdata:/var/lib/mysql
ports:
- 3306:3306
healthcheck:
@ -32,3 +32,6 @@ services:
restart: always
ports:
- 8080:8080
volumes:
dbdata: