From: Mike Bayer Date: Thu, 27 Aug 2015 13:57:32 +0000 (-0400) Subject: - doc edits fixes #322 X-Git-Tag: rel_0_8_3~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33ab9bb8cdcad39841433e52d0134b0aab2ac716;p=thirdparty%2Fsqlalchemy%2Falembic.git - doc edits fixes #322 --- diff --git a/docs/build/api/autogenerate.rst b/docs/build/api/autogenerate.rst index f838137e..cd6ff6cd 100644 --- a/docs/build/api/autogenerate.rst +++ b/docs/build/api/autogenerate.rst @@ -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, )