mai2: Add DB column to handle put playlog and profile in 1.40

This commit is contained in:
topty 2023-12-14 21:45:27 +07:00
parent bf7d709b49
commit 053c9da618
Signed by untrusted user: topty
GPG Key ID: B53673719C495FC8
5 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,6 @@
ALTER TABLE mai2_profile_detail
DROP COLUMN currentPlayCount,
DROP COLUMN renameCredit;
ALTER TABLE mai2_playlog
DROP COLUMN extBool1;

View File

@ -0,0 +1,6 @@
ALTER TABLE mai2_profile_detail
ADD currentPlayCount INT NULL AFTER playCount,
ADD renameCredit INT NULL AFTER banState;
ALTER TABLE mai2_playlog
ADD extBool1 BOOLEAN NULL AFTER extNum4;

View File

@ -16,4 +16,4 @@ game_codes = [
Mai2Constants.GAME_CODE_GREEN,
Mai2Constants.GAME_CODE,
]
current_schema_version = 8
current_schema_version = 9

View File

@ -40,6 +40,7 @@ detail = Table(
Column("charaLockSlot", JSON),
Column("contentBit", BigInteger),
Column("playCount", Integer),
Column("currentPlayCount", Integer), # new with bud
Column("mapStock", Integer), # new with fes+
Column("eventWatchedDate", String(25)),
Column("lastGameId", String(25)),
@ -96,6 +97,7 @@ detail = Table(
Column("playerNewRating", BigInteger),
Column("dateTime", BigInteger),
Column("banState", Integer), # new with uni+
Column("renameCredit", Integer), # new with bud
UniqueConstraint("user", "version", name="mai2_profile_detail_uk"),
mysql_charset="utf8mb4",
)

View File

@ -146,6 +146,7 @@ playlog = Table(
Column("extNum1", Integer),
Column("extNum2", Integer),
Column("extNum4", Integer, server_default="0"),
Column("extBool1", Boolean),
Column("trialPlayAchievement", Integer),
mysql_charset="utf8mb4",
)