Created
August 21, 2019 09:18
-
-
Save arjanz/bb5734e9cfd3ef6d469c9e35ce4ff040 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"""Membership | |
Revision ID: 4974d874ba73 | |
Revises: eab2bca0e472 | |
Create Date: 2019-08-19 18:25:37.506739 | |
""" | |
from alembic import op | |
import sqlalchemy as sa | |
# revision identifiers, used by Alembic. | |
revision = '4974d874ba73' | |
down_revision = 'eab2bca0e472' | |
branch_labels = None | |
depends_on = None | |
def upgrade(): | |
# ### commands auto generated by Alembic - please adjust! ### | |
op.create_table('membership', | |
sa.Column('id', sa.Integer(), autoincrement=False, nullable=False), | |
sa.Column('account_id', sa.String(length=64), nullable=True), | |
sa.Column('handle', sa.String(length=255), nullable=True), | |
sa.Column('about', sa.String(length=255), nullable=True), | |
sa.PrimaryKeyConstraint('id') | |
) | |
# ### end Alembic commands ### | |
def downgrade(): | |
# ### commands auto generated by Alembic - please adjust! ### | |
op.drop_table('membership') | |
# ### end Alembic commands ### |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment