From b25678892d29d4c944e21aa728eb16fcdff2826c Mon Sep 17 00:00:00 2001 From: Matthias Dellweg Date: Fri, 26 Apr 2024 14:10:41 +0200 Subject: [PATCH] Fix RequireVersion missing backwards methods [noissue] --- pulpcore/migrations.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulpcore/migrations.py b/pulpcore/migrations.py index d5126c7047..9f36931d46 100644 --- a/pulpcore/migrations.py +++ b/pulpcore/migrations.py @@ -17,6 +17,9 @@ def __init__(self, plugin, version, hints=None): def state_forwards(self, app_label, state): pass + def state_backwards(self, app_label, state): + pass + def database_forwards(self, app_label, schema_editor, from_state, to_state): from_state.clear_delayed_apps_cache() ApiAppStatus = from_state.apps.get_model("core", "ApiAppStatus") @@ -54,6 +57,9 @@ def database_forwards(self, app_label, schema_editor, from_state, to_state): ) ) + def database_backwards(self, app_label, schema_editor, from_state, to_state): + pass + def describe(self): return f"Require plugin '{self.plugin}' >= '{self.version}'."