mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-12-25 10:54:18 +00:00
31 lines
825 B
Python
31 lines
825 B
Python
"""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 ###
|