From 81671f8ab25e108b06f95efc064f6b08793c10ca Mon Sep 17 00:00:00 2001 From: tcprod Date: Thu, 12 Feb 2026 17:37:46 +0100 Subject: [PATCH] add patches to README.md and comment to patch --- README.md | 4 ++-- sql/users_patch.sql | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9d70fae..d683277 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,8 @@ This repository contains the code for the EZGG LAN Manager. ### Step 1: Preparing Database -To prepare the database, apply the SQL file located in `sql/create_database.sql` followed by `sql/tournament_patch.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable. +To prepare the database, apply the SQL file located in `sql/create_database.sql` to your database server. This is easily accomplished with the MYSQL Workbench, but it can be also done by pipeing the file into the mariadb-server executable. +After the database is created, apply the SQL patches located in `sql/*patch.sql` to support the fallback password- and tournament functionality. Optionally, you can now execute the script `create_demo_database_content.py`, found in `src/ezgg_lan_manager/helpers`. Be aware that it can be buggy sometimes, especially if you overwrite existing data. @@ -43,4 +44,3 @@ FLUSH PRIVILEGES; ``` 3. Make sure to **NOT** use the default passwords! 4. Apply the `create_database.sql` when starting the MariaDB container for the first time. -5. Apply the `tournament_patch.sql` when starting the MariaDB container for the first time. diff --git a/sql/users_patch.sql b/sql/users_patch.sql index 4aea0b3..e397ba3 100644 --- a/sql/users_patch.sql +++ b/sql/users_patch.sql @@ -1,3 +1,5 @@ +-- Apply this patch after using create_database.sql to extend the schema to support fallback passwords + ALTER TABLE users ADD COLUMN user_fallback_password VARCHAR(255) DEFAULT NULL AFTER user_password; \ No newline at end of file