mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-18 17:15:13 +01:00
Fix logical issue in backup migration
This commit is contained in:
parent
6d2accfbc8
commit
e6bcfdf339
@ -176,7 +176,7 @@ def migrate(migrator: Migrator, database, **kwargs):
|
|||||||
valid_schedules = [
|
valid_schedules = [
|
||||||
schedule for schedule in all_schedules if is_valid_entry(schedule, all_servers)
|
schedule for schedule in all_schedules if is_valid_entry(schedule, all_servers)
|
||||||
]
|
]
|
||||||
if len(valid_schedules) > len(all_schedules):
|
if len(valid_schedules) < len(all_schedules):
|
||||||
schedule_migration_status = False
|
schedule_migration_status = False
|
||||||
# Copy data from the existing backups table to the new one
|
# Copy data from the existing backups table to the new one
|
||||||
for backup in valid_backups:
|
for backup in valid_backups:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user