From: Mike Bayer Date: Fri, 7 May 2021 02:31:07 +0000 (-0400) Subject: changelog / docstring edits X-Git-Tag: rel_1_6_2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33180bfa8b01d1410d6173369801165f24897450;p=thirdparty%2Fsqlalchemy%2Falembic.git changelog / docstring edits Change-Id: I89be3f965d3556694f497a47a6b13247ce2a1d94 --- diff --git a/docs/build/unreleased/839.rst b/docs/build/unreleased/839.rst index 85b0a482..a905099a 100644 --- a/docs/build/unreleased/839.rst +++ b/docs/build/unreleased/839.rst @@ -2,5 +2,7 @@ :tags: bug, versioning, regression :tickets: 839 - Fixed regression in new versioning traversal where "alembic downgrade head" - (or equivalent) fails instead of iterating no revisions. + Fixed additional regression nearly the same as that of :ticket:`838` just + released in 1.6.1 but within a slightly different codepath, where "alembic + downgrade head" (or equivalent) would fail instead of iterating no + revisions. diff --git a/tests/test_version_traversal.py b/tests/test_version_traversal.py index bdc7f658..0b5306d3 100644 --- a/tests/test_version_traversal.py +++ b/tests/test_version_traversal.py @@ -54,11 +54,17 @@ class RevisionPathTest(MigrationTest): self._assert_downgrade("base", [], [], set()) def test_downgrade_to_existing(self): + """test for #838; downgrade to a revision that's already in + current heads, but is not itself a head.""" + self._assert_downgrade( self.a.revision, [self.a.revision], [], {self.a.revision} ) def test_downgrade_to_existing_head(self): + """test for #839; downgrade to a revision that's already in current + heads, which *is* itself a head.""" + self._assert_downgrade( self.e.revision, [self.e.revision], [], {self.e.revision} )