From e621597a94bf2eb46b308524c1719ab4fd72c7b9 Mon Sep 17 00:00:00 2001 From: David Rodenkirchen Date: Sun, 15 Feb 2026 01:15:35 +0100 Subject: [PATCH] cleanup --- README.md | 9 ++++++--- VERSION | 2 +- sql/{tournament_patch.sql => 01-tournament_patch.sql} | 0 sql/{teams_patch.sql => 02-teams_patch.sql} | 0 4 files changed, 7 insertions(+), 4 deletions(-) rename sql/{tournament_patch.sql => 01-tournament_patch.sql} (100%) rename sql/{teams_patch.sql => 02-teams_patch.sql} (100%) diff --git a/README.md b/README.md index 9d70fae..f2c20b9 100644 --- a/README.md +++ b/README.md @@ -8,13 +8,16 @@ This repository contains the code for the EZGG LAN Manager. ### Prerequisites -- Working Installation of MySQL 5 or latest MariaDB Server (`mariadb-server` for Debian-based Linux, `XAMPP` for Windows) +- Working Installation of MariaDB Server (version `10.6.25` or later) + + MySQL should work too, but there are no guarantees. - Python 3.9 or higher - PyCharm or similar IDE (optional) ### 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 piping the file into the mariadb-server executable. + +After creating the database, apply all patches found in `sql/*_patch.sql` in their numeric order. 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 +46,4 @@ 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. +5. Apply the patches (`sql/*_patch.sql`) when starting the MariaDB container for the first time. diff --git a/VERSION b/VERSION index f477849..9325c3c 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.2.2 \ No newline at end of file +0.3.0 \ No newline at end of file diff --git a/sql/tournament_patch.sql b/sql/01-tournament_patch.sql similarity index 100% rename from sql/tournament_patch.sql rename to sql/01-tournament_patch.sql diff --git a/sql/teams_patch.sql b/sql/02-teams_patch.sql similarity index 100% rename from sql/teams_patch.sql rename to sql/02-teams_patch.sql