Skip to content

Commit

Permalink
Fix RequireVersion missing backwards methods
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
mdellweg committed Apr 26, 2024
1 parent 7297b25 commit b256788
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pulpcore/migrations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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}'."

Expand Down

0 comments on commit b256788

Please sign in to comment.