<filename>migrations/versions/a45942d815f_added_upload_table.py
"""added upload table

Revision ID: a45942d815f
Revises: <PASSWORD>
Create Date: 2016-03-07 12:00:50.283535

"""

# revision identifiers, used by Alembic.
revision = 'a45942d815f'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.create_table('uploads',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('user_id', sa.Integer(), nullable=True),
    sa.Column('source', sa.String(length=256), nullable=True),
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    ### end Alembic commands ###


def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('uploads')
    ### end Alembic commands ###

<filename>migrations/versions/a45942d815f_added_upload_table.py
"""added upload table

Revision ID: a45942d815f
Revises: <PASSWORD>
Create Date: 2016-03-07 12:00:50.283535

"""

# revision identifiers, used by Alembic.
revision = 'a45942d815f'
down_revision = '<PASSWORD>'

from alembic import op
import sqlalchemy as sa


def upgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.create_table('uploads',
    sa.Column('id', sa.Integer(), nullable=False),
    sa.Column('user_id', sa.Integer(), nullable=True),
    sa.Column('source', sa.String(length=256), nullable=True),
    sa.ForeignKeyConstraint(['user_id'], ['users.id'], ),
    sa.PrimaryKeyConstraint('id')
    )
    ### end Alembic commands ###


def downgrade():
    ### commands auto generated by Alembic - please adjust! ###
    op.drop_table('uploads')
    ### end Alembic commands ###

added upload table  Revision ID: a45942d815f Revises: <PASSWORD> Create Date: 2016-03-07 12:00:50.283535 # revision identifiers, used by Alembic. ### commands auto generated by Alembic - please adjust! ### ### end Alembic commands ### ### commands auto generated by Alembic - please adjust! ### ### end Alembic commands ###