summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-11-30 15:01:46 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2011-11-30 15:01:46 -0500
commitf2bcbe4af1a9a0187da8c1581a147198856174b1 (patch)
treea892d13d328e1150bfd8f133b37792a61a821431 /docs
parent8c9b4c286ba1ff085440855b66e35098b24bd681 (diff)
downloadalembic-f2bcbe4af1a9a0187da8c1581a147198856174b1.tar.gz
another doc bug
Diffstat (limited to 'docs')
-rw-r--r--docs/build/tutorial.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/build/tutorial.rst b/docs/build/tutorial.rst
index ab55ce5..42bf422 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