From f2bcbe4af1a9a0187da8c1581a147198856174b1 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 30 Nov 2011 15:01:46 -0500 Subject: [PATCH] another doc bug --- docs/build/tutorial.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.47.2