diff --git a/core/data/schema/versions/SDEZ_8_rollback.sql b/core/data/schema/versions/SDEZ_8_rollback.sql new file mode 100644 index 0000000..7f3f2e8 --- /dev/null +++ b/core/data/schema/versions/SDEZ_8_rollback.sql @@ -0,0 +1,6 @@ +ALTER TABLE mai2_profile_detail + DROP COLUMN currentPlayCount, + DROP COLUMN renameCredit; + +ALTER TABLE mai2_playlog + DROP COLUMN extBool1; diff --git a/core/data/schema/versions/SDEZ_9_upgrade.sql b/core/data/schema/versions/SDEZ_9_upgrade.sql new file mode 100644 index 0000000..977527b --- /dev/null +++ b/core/data/schema/versions/SDEZ_9_upgrade.sql @@ -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; diff --git a/titles/mai2/__init__.py b/titles/mai2/__init__.py index 4857644..a3c178e 100644 --- a/titles/mai2/__init__.py +++ b/titles/mai2/__init__.py @@ -16,4 +16,4 @@ game_codes = [ Mai2Constants.GAME_CODE_GREEN, Mai2Constants.GAME_CODE, ] -current_schema_version = 8 +current_schema_version = 9 diff --git a/titles/mai2/schema/profile.py b/titles/mai2/schema/profile.py index 211440d..f75edfc 100644 --- a/titles/mai2/schema/profile.py +++ b/titles/mai2/schema/profile.py @@ -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", ) diff --git a/titles/mai2/schema/score.py b/titles/mai2/schema/score.py index 181a895..4582561 100644 --- a/titles/mai2/schema/score.py +++ b/titles/mai2/schema/score.py @@ -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", )