"""empty message

Revision ID: 35405a9f16c4
Revises: 
Create Date: 2017-04-29 11:36:24.682258

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '35405a9f16c4'
down_revision = None
branch_labels = None
depends_on = None


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


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

48ce690b6aba42c4003adec8d3200ea081bb5643
<mask token>


def downgrade():
    op.drop_table('analyses')

<mask token>


def upgrade():
    op.create_table('analyses', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('user_id', sa.Integer(), nullable=True), sa.
        Column('source_file_id', sa.Integer(), nullable=True), sa.
        ForeignKeyConstraint(['source_file_id'], ['files.id']), sa.
        ForeignKeyConstraint(['user_id'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('analyses')

<mask token>
revision = '35405a9f16c4'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('analyses', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('user_id', sa.Integer(), nullable=True), sa.
        Column('source_file_id', sa.Integer(), nullable=True), sa.
        ForeignKeyConstraint(['source_file_id'], ['files.id']), sa.
        ForeignKeyConstraint(['user_id'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('analyses')

<mask token>
from alembic import op
import sqlalchemy as sa
revision = '35405a9f16c4'
down_revision = None
branch_labels = None
depends_on = None


def upgrade():
    op.create_table('analyses', sa.Column('id', sa.Integer(), nullable=
        False), sa.Column('user_id', sa.Integer(), nullable=True), sa.
        Column('source_file_id', sa.Integer(), nullable=True), sa.
        ForeignKeyConstraint(['source_file_id'], ['files.id']), sa.
        ForeignKeyConstraint(['user_id'], ['users.id']), sa.
        PrimaryKeyConstraint('id'))


def downgrade():
    op.drop_table('analyses')

"""empty message

Revision ID: 35405a9f16c4
Revises: 
Create Date: 2017-04-29 11:36:24.682258

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = '35405a9f16c4'
down_revision = None
branch_labels = None
depends_on = None


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


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