]> git.ipfire.org Git - thirdparty/sqlalchemy/alembic.git/commitdiff
another doc bug
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Nov 2011 20:01:46 +0000 (15:01 -0500)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 30 Nov 2011 20:01:46 +0000 (15:01 -0500)
docs/build/tutorial.rst

index ab55ce5dbfd2a76123fe19b2f59d5103af8ff14d..42bf422527b801f1226d177a7d5f061c8a13fdd4 100644 (file)
@@ -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