nopaque/migrations/versions/41f75a5ff745_.py

31 lines
825 B
Python
Raw Normal View History

2019-10-17 11:33:16 +00:00
"""empty message
Revision ID: 41f75a5ff745
Revises: 95eecbe83668
Create Date: 2019-10-17 10:07:51.595833
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '41f75a5ff745'
down_revision = '95eecbe83668'
branch_labels = None
depends_on = None
def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('job_results', sa.Column('job_input_id', sa.Integer(), nullable=True))
op.create_foreign_key(None, 'job_results', 'job_inputs', ['job_input_id'], ['id'])
# ### end Alembic commands ###
def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_constraint(None, 'job_results', type_='foreignkey')
op.drop_column('job_results', 'job_input_id')
# ### end Alembic commands ###