From f2ed0d5d7b3fbd45d68692185781d0d7e7742159 Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Sat, 24 Sep 2022 15:22:28 +0200 Subject: fix stamp logic for downgrades --- fietsboek/updater/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fietsboek/updater/__init__.py b/fietsboek/updater/__init__.py index 8ca4991..038fcd5 100644 --- a/fietsboek/updater/__init__.py +++ b/fietsboek/updater/__init__.py @@ -207,7 +207,7 @@ class Updater: for downgrade in application_queue: script = self.scripts[downgrade] script.downgrade(self.settings, self.alembic_config) - self._stamp_versions(self.backward_dependencies[script.id], [script.id]) + self._stamp_versions([script.id], script.previous) def new_revision(self, revision_id=None): """Creates a new revision with the current versions as dependencies and -- cgit v1.2.3