forked from Hay1tsme/artemis
mai2: Add DB column to handle put playlog and profile in 1.40
This commit is contained in:
parent
bf7d709b49
commit
053c9da618
6
core/data/schema/versions/SDEZ_8_rollback.sql
Normal file
6
core/data/schema/versions/SDEZ_8_rollback.sql
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
ALTER TABLE mai2_profile_detail
|
||||||
|
DROP COLUMN currentPlayCount,
|
||||||
|
DROP COLUMN renameCredit;
|
||||||
|
|
||||||
|
ALTER TABLE mai2_playlog
|
||||||
|
DROP COLUMN extBool1;
|
6
core/data/schema/versions/SDEZ_9_upgrade.sql
Normal file
6
core/data/schema/versions/SDEZ_9_upgrade.sql
Normal 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;
|
@ -16,4 +16,4 @@ game_codes = [
|
|||||||
Mai2Constants.GAME_CODE_GREEN,
|
Mai2Constants.GAME_CODE_GREEN,
|
||||||
Mai2Constants.GAME_CODE,
|
Mai2Constants.GAME_CODE,
|
||||||
]
|
]
|
||||||
current_schema_version = 8
|
current_schema_version = 9
|
||||||
|
@ -40,6 +40,7 @@ detail = Table(
|
|||||||
Column("charaLockSlot", JSON),
|
Column("charaLockSlot", JSON),
|
||||||
Column("contentBit", BigInteger),
|
Column("contentBit", BigInteger),
|
||||||
Column("playCount", Integer),
|
Column("playCount", Integer),
|
||||||
|
Column("currentPlayCount", Integer), # new with bud
|
||||||
Column("mapStock", Integer), # new with fes+
|
Column("mapStock", Integer), # new with fes+
|
||||||
Column("eventWatchedDate", String(25)),
|
Column("eventWatchedDate", String(25)),
|
||||||
Column("lastGameId", String(25)),
|
Column("lastGameId", String(25)),
|
||||||
@ -96,6 +97,7 @@ detail = Table(
|
|||||||
Column("playerNewRating", BigInteger),
|
Column("playerNewRating", BigInteger),
|
||||||
Column("dateTime", BigInteger),
|
Column("dateTime", BigInteger),
|
||||||
Column("banState", Integer), # new with uni+
|
Column("banState", Integer), # new with uni+
|
||||||
|
Column("renameCredit", Integer), # new with bud
|
||||||
UniqueConstraint("user", "version", name="mai2_profile_detail_uk"),
|
UniqueConstraint("user", "version", name="mai2_profile_detail_uk"),
|
||||||
mysql_charset="utf8mb4",
|
mysql_charset="utf8mb4",
|
||||||
)
|
)
|
||||||
|
@ -146,6 +146,7 @@ playlog = Table(
|
|||||||
Column("extNum1", Integer),
|
Column("extNum1", Integer),
|
||||||
Column("extNum2", Integer),
|
Column("extNum2", Integer),
|
||||||
Column("extNum4", Integer, server_default="0"),
|
Column("extNum4", Integer, server_default="0"),
|
||||||
|
Column("extBool1", Boolean),
|
||||||
Column("trialPlayAchievement", Integer),
|
Column("trialPlayAchievement", Integer),
|
||||||
mysql_charset="utf8mb4",
|
mysql_charset="utf8mb4",
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user