Titan/webapp/alembic/versions/16b4fdbbe155_added_patreon_table.py

34 lines
818 B
Python
Raw Permalink Normal View History

2017-11-22 03:41:43 +01:00
"""Added patreon table
Revision ID: 16b4fdbbe155
Revises: 7d6484faaccd
Create Date: 2017-11-21 03:16:42.629612
"""
# revision identifiers, used by Alembic.
revision = '16b4fdbbe155'
down_revision = '7d6484faaccd'
branch_labels = None
depends_on = None
from alembic import op
import sqlalchemy as sa
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.create_table('patreon',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('user_id', sa.String(length=255), nullable=False),
sa.Column('total_synced', sa.Integer(), nullable=False),
sa.PrimaryKeyConstraint('id')
)
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_table('patreon')
# ### end Alembic commands ###