From 2801c617f6d225a6bc9c42b2e9277baad57a1d20 Mon Sep 17 00:00:00 2001 From: Sven Heidemann Date: Fri, 10 Nov 2023 13:27:58 +0100 Subject: [PATCH] Fixed migrations #428 --- bot/src/bot_data/migration/api_migration.py | 2 +- bot/src/bot_data/migration/initial_migration.py | 2 +- bot/src/bot_data/migration/level_migration.py | 2 +- bot/src/bot_data/migration/stats_migration.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/src/bot_data/migration/api_migration.py b/bot/src/bot_data/migration/api_migration.py index e67eb53f..0aa4a5c3 100644 --- a/bot/src/bot_data/migration/api_migration.py +++ b/bot/src/bot_data/migration/api_migration.py @@ -4,7 +4,7 @@ from bot_data.db_context import DBContext class ApiMigration(MigrationABC): - name = "0.3_ApiMigration" + name = "0.3.0_ApiMigration" def __init__(self, logger: DatabaseLogger, db: DBContext): MigrationABC.__init__(self) diff --git a/bot/src/bot_data/migration/initial_migration.py b/bot/src/bot_data/migration/initial_migration.py index 48551dbd..8eb0611a 100644 --- a/bot/src/bot_data/migration/initial_migration.py +++ b/bot/src/bot_data/migration/initial_migration.py @@ -4,7 +4,7 @@ from bot_data.db_context import DBContext class InitialMigration(MigrationABC): - name = "0.1_InitialMigration" + name = "0.1.0_InitialMigration" def __init__(self, logger: DatabaseLogger, db: DBContext): MigrationABC.__init__(self) diff --git a/bot/src/bot_data/migration/level_migration.py b/bot/src/bot_data/migration/level_migration.py index 20ad3c7b..bf80d472 100644 --- a/bot/src/bot_data/migration/level_migration.py +++ b/bot/src/bot_data/migration/level_migration.py @@ -4,7 +4,7 @@ from bot_data.db_context import DBContext class LevelMigration(MigrationABC): - name = "0.3_LevelMigration" + name = "0.3.0_LevelMigration" def __init__(self, logger: DatabaseLogger, db: DBContext): MigrationABC.__init__(self) diff --git a/bot/src/bot_data/migration/stats_migration.py b/bot/src/bot_data/migration/stats_migration.py index c28eeda9..2fb4c461 100644 --- a/bot/src/bot_data/migration/stats_migration.py +++ b/bot/src/bot_data/migration/stats_migration.py @@ -4,7 +4,7 @@ from bot_data.db_context import DBContext class StatsMigration(MigrationABC): - name = "0.3_StatsMigration" + name = "0.3.0_StatsMigration" def __init__(self, logger: DatabaseLogger, db: DBContext): MigrationABC.__init__(self)