Update only the control with the operations value to update when migrating

Closes #13499
This commit is contained in:
Cédric Krier
2024-09-11 16:03:19 +02:00
parent 1c5e39702c
commit 3e638151f7
+2 -1
View File
@@ -227,7 +227,8 @@ class Control(DeactivableMixin, MatchMixin, ModelSQL, ModelView):
for id_, operations in cursor:
update.execute(*table.update(
[table.operations],
operations.replace(old, new)))
operations.replace(old, new),
where=table.id == id_))
@classmethod
def default_frequency(cls):