From aa6ce7c35d41e55042c3e97e3f818d060ae6a65b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laur=C3=A9line=20Gu=C3=A9rin?= Date: Thu, 26 Jan 2023 17:09:31 +0100 Subject: [PATCH] misc: remove old digest migrations (#73775) --- wcs/formdata.py | 8 -------- wcs/formdef.py | 8 -------- 2 files changed, 16 deletions(-) diff --git a/wcs/formdata.py b/wcs/formdata.py index 40b50a57b..fb6af0fba 100644 --- a/wcs/formdata.py +++ b/wcs/formdata.py @@ -333,14 +333,6 @@ class FormData(StorableObject): self.submission_agent_id = str(self.submission_context.get('agent_id')) changed = True - if 'digest' in self.__dict__: # 2021-06-24 - # migration from a simple digest to digests - if not self.digests: - self.digests = {} - self.digests['default'] = self.__dict__['digest'] - del self.__dict__['digest'] - changed = True - if changed: self.store() diff --git a/wcs/formdef.py b/wcs/formdef.py index e093a1574..2f32e6b97 100644 --- a/wcs/formdef.py +++ b/wcs/formdef.py @@ -225,14 +225,6 @@ class FormDef(StorableObject): # don't run migration on lightweight objects return - if 'digest_template' in self.__dict__: - # 2021-06-22 - migration from a simple template to templates - if not self.digest_templates: - self.digest_templates = {} - self.digest_templates['default'] = self.__dict__['digest_template'] - del self.__dict__['digest_template'] - changed = True - if self.max_field_id is None and self.fields: self.max_field_id = max(lax_int(x.id) for x in self.fields) changed = True