Compare commits

..

No commits in common. "d25305be4a445c7eaf10dec3dba2f437c99958f8" and "5b43b728385667ae3c474982689de05127a7b9d6" have entirely different histories.

2 changed files with 8 additions and 4 deletions

View File

@ -17,10 +17,14 @@ class FixUserHistoryMigration(MigrationABC):
# fix 1.1.0_AchievementsMigration # fix 1.1.0_AchievementsMigration
self._cursor.execute( self._cursor.execute(
str(f"""ALTER TABLE UsersHistory ADD COLUMN ReactionCount BIGINT NOT NULL DEFAULT 0 AFTER XP;""") str(
f"""ALTER TABLE UsersHistory ADD COLUMN IF NOT EXISTS ReactionCount BIGINT NOT NULL DEFAULT 0 AFTER XP;"""
)
) )
self._cursor.execute( self._cursor.execute(
str(f"""ALTER TABLE UsersHistory ADD COLUMN MessageCount BIGINT NOT NULL DEFAULT 0 AFTER ReactionCount;""") str(
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")

View File

@ -36,7 +36,7 @@ class SteamSpecialOfferMigration(MigrationABC):
str( str(
f""" f"""
ALTER TABLE CFG_Server ALTER TABLE CFG_Server
ADD COLUMN GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest; ADD COLUMN IF NOT EXISTS 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 GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest; ADD COLUMN IF NOT EXISTS GameOfferNotificationChatId BIGINT NULL AFTER ShortRoleNameSetOnlyHighest;
""" """
) )
) )