maidx: upgrade schema for uni+

This commit is contained in:
Hay1tsme 2023-02-27 11:55:51 -05:00
parent 806dd717e6
commit 1f2d12f318
6 changed files with 10 additions and 3 deletions

View File

@ -0,0 +1,3 @@
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE mai2_playlog DROP COLUMN trialPlayAchievement;
SET FOREIGN_KEY_CHECKS=1;

View File

@ -0,0 +1,3 @@
SET FOREIGN_KEY_CHECKS=0;
ALTER TABLE mai2_playlog ADD trialPlayAchievement INT NULL;
SET FOREIGN_KEY_CHECKS=1;

View File

@ -51,7 +51,7 @@ sudo apt install -f mysql-client=5.7* mysql-community-server=5.7* mysql-server=5
``` ```
CREATE USER 'aime'@'localhost' IDENTIFIED BY 'MyStrongPass.'; CREATE USER 'aime'@'localhost' IDENTIFIED BY 'MyStrongPass.';
CREATE DATABASE aime; CREATE DATABASE aime;
GRANT Alter,Create,Delete,Drop,Insert,References,Select,Update ON aime.* TO 'aime'@'localhost'; GRANT Alter,Create,Delete,Drop,Index,Insert,References,Select,Update ON aime.* TO 'aime'@'localhost';
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
exit; exit;
``` ```

View File

@ -27,7 +27,7 @@ This step-by-step guide assumes that you are using a fresh install of Windows 10
``` ```
CREATE USER 'aime'@'localhost' IDENTIFIED BY 'MyStrongPass.'; CREATE USER 'aime'@'localhost' IDENTIFIED BY 'MyStrongPass.';
CREATE DATABASE aime; CREATE DATABASE aime;
GRANT Alter,Create,Delete,Drop,Insert,References,Select,Update ON aime.* TO 'aime'@'localhost'; GRANT Alter,Create,Delete,Drop,Index,Insert,References,Select,Update ON aime.* TO 'aime'@'localhost';
FLUSH PRIVILEGES; FLUSH PRIVILEGES;
exit; exit;
``` ```

View File

@ -15,4 +15,4 @@ trailing_slash = True
use_default_host = False use_default_host = False
host = "" host = ""
current_schema_version = 1 current_schema_version = 2

View File

@ -135,6 +135,7 @@ playlog = Table(
Column("isNewFree", Boolean), Column("isNewFree", Boolean),
Column("extNum1", Integer), Column("extNum1", Integer),
Column("extNum2", Integer), Column("extNum2", Integer),
Column("trialPlayAchievement", Integer),
mysql_charset='utf8mb4' mysql_charset='utf8mb4'
) )