Skip to content

Instantly share code, notes, and snippets.

@avelino
Created February 16, 2017 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avelino/60577550a2bb8862c1a6c28ba7acabd1 to your computer and use it in GitHub Desktop.
Save avelino/60577550a2bb8862c1a6c28ba7acabd1 to your computer and use it in GitHub Desktop.
def upgrade():
op.create_table(
'account',
sa.Column('id', sa.Integer, primary_key=True),
sa.Column('name', sa.String(50), nullable=False),
sa.Column('description', sa.Unicode(200)),
)
def downgrade():
op.drop_table('account')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment