"""add depends to tasks Revision ID: 10459dd24d3d Revises: 17946e7038d7 Create Date: 2020-05-21 11:07:46.953781 """ from alembic import op import sqlalchemy as sa # revision identifiers, used by Alembic. revision = '10459dd24d3d' down_revision = '17946e7038d7' branch_labels = None depends_on = None def upgrade(): op.create_table( 'depends', sa.Column('first_id', sa.Integer, sa.ForeignKey('tasks.id'), primary_key=True), sa.Column('second_id', sa.Integer, sa.ForeignKey('tasks.id'), primary_key=True) ) def downgrade(): op.drop_table('depends')