"""add attachment table Revision ID: d7db8fd35b41 Revises: 0845b2f0f401 Create Date: 2018-08-24 11:27:15.317181 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = 'd7db8fd35b41' down_revision = '0845b2f0f401' branch_labels = None depends_on = None def upgrade(): # ### commands auto generated by Alembic - please adjust! ### op.create_table('attachments', sa.Column('id', sa.Integer(), nullable=False), sa.Column('filename', sa.String(), nullable=True), sa.Column('object_name', sa.String(), nullable=True), sa.PrimaryKeyConstraint('id'), sa.UniqueConstraint('object_name') ) op.create_unique_constraint(None, 'task_order', ['number']) # ### end Alembic commands ### def downgrade(): # ### commands auto generated by Alembic - please adjust! ### op.drop_constraint(None, 'task_order', type_='unique') op.drop_table('attachments') # ### end Alembic commands ###