From 802d5478d16f504266769becdffa9737d466bee9 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Wed, 15 Nov 2023 19:30:29 +0100 Subject: [PATCH] Fixed migration service --- bot/src/bot_data/scripts/1.2.0/5_MaintenanceMode_up.sql | 2 -- bot/src/bot_data/service/migration_service.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/bot/src/bot_data/scripts/1.2.0/5_MaintenanceMode_up.sql b/bot/src/bot_data/scripts/1.2.0/5_MaintenanceMode_up.sql index 895e24ad..a202bfaa 100644 --- a/bot/src/bot_data/scripts/1.2.0/5_MaintenanceMode_up.sql +++ b/bot/src/bot_data/scripts/1.2.0/5_MaintenanceMode_up.sql @@ -1,8 +1,6 @@ ALTER TABLE CFG_Technician ADD Maintenance BOOLEAN DEFAULT FALSE AFTER MaxSteamOfferCount; - - ALTER TABLE CFG_TechnicianHistory ADD Maintenance BOOLEAN DEFAULT FALSE AFTER MaxSteamOfferCount; diff --git a/bot/src/bot_data/service/migration_service.py b/bot/src/bot_data/service/migration_service.py index b2356eaa..a8caeb75 100644 --- a/bot/src/bot_data/service/migration_service.py +++ b/bot/src/bot_data/service/migration_service.py @@ -67,7 +67,7 @@ class MigrationService: def _load_scripts(self, upgrade: bool = True) -> List[Migration]: migrations = List(Migration) - path = "../../src/bot_data/scripts" + path = "../bot_data/scripts" if not os.path.exists(path): raise Exception("Migration path not found")