]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
ReplaceableObject: change `self.view` to `self.target`
authorWilliam Weiskopf <william@weiskopf.me>
Fri, 28 Jun 2019 16:47:53 +0000 (12:47 -0400)
committerGitHub <noreply@github.com>
Fri, 28 Jun 2019 16:47:53 +0000 (12:47 -0400)
docs/build/cookbook.rst

index ebaee5efb66ee839e6ba04824da224da4fb93ba1..6e1740ae34dbb509fa1f369fb88dfe9136d414ae 100644 (file)
@@ -405,7 +405,7 @@ to make them part of the ``op.*`` namespace::
     @Operations.register_operation("drop_view", "invoke_for_target")
     class DropViewOp(ReversibleOp):
         def reverse(self):
-            return CreateViewOp(self.view)
+            return CreateViewOp(self.target)
 
 
     @Operations.register_operation("create_sp", "invoke_for_target")