Fixed migration scripts
Some checks reported warnings
Deploy staging on push / on-push-deploy_sh-edraft (push) Has been cancelled
Some checks reported warnings
Deploy staging on push / on-push-deploy_sh-edraft (push) Has been cancelled
This commit is contained in:
parent
46cd33d194
commit
b540821a32
@ -17,14 +17,10 @@ class FixUserHistoryMigration(MigrationABC):
|
|||||||
|
|
||||||
# fix 1.1.0_AchievementsMigration
|
# fix 1.1.0_AchievementsMigration
|
||||||
self._cursor.execute(
|
self._cursor.execute(
|
||||||
str(
|
str(f"""ALTER TABLE UsersHistory ADD COLUMN ReactionCount BIGINT NOT NULL DEFAULT 0 AFTER XP;""")
|
||||||
f"""ALTER TABLE UsersHistory ADD COLUMN IF NOT EXISTS ReactionCount BIGINT NOT NULL DEFAULT 0 AFTER XP;"""
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
self._cursor.execute(
|
self._cursor.execute(
|
||||||
str(
|
str(f"""ALTER TABLE UsersHistory ADD COLUMN MessageCount BIGINT NOT NULL DEFAULT 0 AFTER ReactionCount;""")
|
||||||
f"""ALTER TABLE UsersHistory ADD COLUMN IF NOT EXISTS MessageCount BIGINT NOT NULL DEFAULT 0 AFTER ReactionCount;"""
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
self._exec(__file__, "users.sql")
|
self._exec(__file__, "users.sql")
|
||||||
|
|
||||||
|
@ -36,7 +36,7 @@ class SteamSpecialOfferMigration(MigrationABC):
|
|||||||
str(
|
str(
|
||||||
f"""
|
f"""
|
||||||
ALTER TABLE CFG_Server
|
ALTER TABLE CFG_Server
|
||||||
ADD COLUMN IF NOT EXISTS GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest;
|
ADD COLUMN GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest;
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@ -45,7 +45,7 @@ class SteamSpecialOfferMigration(MigrationABC):
|
|||||||
str(
|
str(
|
||||||
f"""
|
f"""
|
||||||
ALTER TABLE CFG_ServerHistory
|
ALTER TABLE CFG_ServerHistory
|
||||||
ADD COLUMN IF NOT EXISTS GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest;
|
ADD COLUMN GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest;
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user