renaming the file to run part 1 before part 2

This commit is contained in:
Silversthorn 2024-03-23 13:32:54 +01:00
parent 8ff83fa045
commit d30b335637

View File

@ -25,7 +25,7 @@ def migrate(migrator: Migrator, database, **kwargs):
db = database
this_migration = MigrateHistory.get_or_none(
MigrateHistory.name == "20240216_rework_servers_uuid_part2"
MigrateHistory.name == "20240217_rework_servers_uuid_part2"
)
if this_migration is not None:
Console.debug("Update database already done, skipping this part")
@ -142,7 +142,7 @@ def rollback(migrator: Migrator, database, **kwargs):
# Condition to prevent running rollback each time we've got a rollback to do
this_migration = MigrateHistory.get_or_none(
MigrateHistory.name == "20240216_rework_servers_uuid_part2"
MigrateHistory.name == "20240217_rework_servers_uuid_part2"
)
if this_migration is None:
Console.debug("Update database already done, skipping this part")