]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
- doc edits fixes #322
authorMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Aug 2015 13:57:32 +0000 (09:57 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Thu, 27 Aug 2015 13:57:32 +0000 (09:57 -0400)
docs/build/api/autogenerate.rst

index f838137ee4d0838a1d6b76b48a6c7593127f973e..cd6ff6cd6d4ce02903585cd98c32d26b353a8743 100644 (file)
@@ -233,7 +233,7 @@ to alter the nullable flag in a second step::
     # ... fragmented env.py script ....
 
     from alembic.autogenerate import rewriter
-    from alembic import ops
+    from alembic.operations import ops
 
     writer = rewriter.Rewriter()
 
@@ -247,7 +247,7 @@ to alter the nullable flag in a second step::
                 op,
                 ops.AlterColumnOp(
                     op.table_name,
-                    op.column_name,
+                    op.column.name,
                     modify_nullable=False,
                     existing_type=op.column.type,
                 )