add patches to README.md and comment to patch
This commit is contained in:
parent
ca58f9d74c
commit
81671f8ab2
@ -14,7 +14,8 @@ This repository contains the code for the EZGG LAN Manager.
|
|||||||
|
|
||||||
### Step 1: Preparing Database
|
### 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.
|
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!
|
3. Make sure to **NOT** use the default passwords!
|
||||||
4. Apply the `create_database.sql` when starting the MariaDB container for the first time.
|
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.
|
|
||||||
|
|||||||
@ -1,3 +1,5 @@
|
|||||||
|
-- Apply this patch after using create_database.sql to extend the schema to support fallback passwords
|
||||||
|
|
||||||
ALTER TABLE users
|
ALTER TABLE users
|
||||||
ADD COLUMN user_fallback_password VARCHAR(255) DEFAULT NULL
|
ADD COLUMN user_fallback_password VARCHAR(255) DEFAULT NULL
|
||||||
AFTER user_password;
|
AFTER user_password;
|
||||||
Loading…
Reference in New Issue
Block a user