mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Disabling code if already updated to prevent unnecessary errors messages
This commit is contained in:
parent
8f8feef6de
commit
5e4dbb1902
@ -22,12 +22,10 @@ def migrate(migrator: Migrator, database, **kwargs):
|
||||
"""
|
||||
db = database
|
||||
|
||||
this_migration = MigrateHistory.get(MigrateHistory.name == "20240216_rework_servers_uuid_part2")
|
||||
if this_migration:
|
||||
Console.debug("Update database already done, skipping this migration")
|
||||
this_migration = MigrateHistory.get_or_none(MigrateHistory.name == "20240216_rework_servers_uuid_part2")
|
||||
if this_migration is not None:
|
||||
Console.debug("Update database already done, skipping this part")
|
||||
return
|
||||
else :
|
||||
Console.debug("Update database not done, doing : Migration Data from Int to UUID")
|
||||
|
||||
# **********************************************************************************
|
||||
# Servers New Model from Old (easier to migrate without dunmping Database)
|
||||
|
Loading…
Reference in New Issue
Block a user