From: Mike Bayer Date: Wed, 30 Nov 2011 20:01:46 +0000 (-0500) Subject: another doc bug X-Git-Tag: rel_0_1_0~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2bcbe4af1a9a0187da8c1581a147198856174b1;p=thirdparty%2Fsqlalchemy%2Falembic.git another doc bug --- diff --git a/docs/build/tutorial.rst b/docs/build/tutorial.rst index ab55ce5d..42bf4225 100644 --- a/docs/build/tutorial.rst +++ b/docs/build/tutorial.rst @@ -237,7 +237,7 @@ the ability to build the current database fully). We can then add some directives to our script, suppose adding a new table ``account``:: def upgrade(): - create_table( + op.create_table( 'account', sa.Column('id', sa.Integer, primary_key=True), sa.Column('name', sa.String(50), nullable=False), @@ -245,7 +245,7 @@ We can then add some directives to our script, suppose adding a new table ``acco ) def downgrade(): - drop_table('account') + op.drop_table('account') :func:`.create_table` and :func:`.drop_table` are Alembic directives. Alembic provides all the basic database migration operations via these directives, which are designed to be as simple and