123456789101112131415161718192021222324252627282930313233343536 |
- """empty message
- Revision ID: 8f2554c45633
- Revises: b03df3e31b8d
- Create Date: 2022-02-09 13:55:07.389805
- """
- from alembic import op
- import sqlalchemy as sa
- # revision identifiers, used by Alembic.
- revision = '8f2554c45633'
- down_revision = 'b03df3e31b8d'
- branch_labels = None
- depends_on = None
- def upgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.create_table('result_confirmation',
- sa.Column('id', sa.Integer(), nullable=False),
- sa.Column('result_id', sa.Integer(), nullable=False),
- sa.Column('confirming_user', sa.String(), nullable=False),
- sa.ForeignKeyConstraint(['result_id'], ['result.id'], ondelete='CASCADE'),
- sa.PrimaryKeyConstraint('id')
- )
- op.add_column('result', sa.Column('origin_user', sa.String(), nullable=True))
- # ### end Alembic commands ###
- def downgrade():
- # ### commands auto generated by Alembic - please adjust! ###
- op.drop_column('result', 'origin_user')
- op.drop_table('result_confirmation')
- # ### end Alembic commands ###
|