Commits

delegans  committed 780eab5 Draft

Fix bug added in 219d6a0476ea revision. Occurs when 'alembic downgrade base' execute.

  • Participants
  • Parent commits 219d6a0

Comments (0)

Files changed (1)

File alembic/script.py

     def _downgrade_revs(self, destination, current_rev):
         revs = self.iterate_revisions(current_rev, destination)
         return [
-            (script.module.downgrade, script.revision, script.down_revision, self.get_revision(script.down_revision).doc)
+            (script.module.downgrade, script.revision, script.down_revision, 
+             self.get_revision(script.down_revision).doc if script.down_revision else 'base')
             for script in revs
             ]