714aafe25d39_add_anntation_history_match_response.py 1015 B

12345678910111213141516171819202122232425262728293031323334
  1. """add_anntation_history_match_response
  2. Revision ID: 714aafe25d39
  3. Revises: f2a6fc85e260
  4. Create Date: 2023-12-14 06:38:02.972527
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = '714aafe25d39'
  10. down_revision = 'f2a6fc85e260'
  11. branch_labels = None
  12. depends_on = None
  13. def upgrade():
  14. # ### commands auto generated by Alembic - please adjust! ###
  15. with op.batch_alter_table('app_annotation_hit_histories', schema=None) as batch_op:
  16. batch_op.add_column(sa.Column('annotation_question', sa.Text(), nullable=False))
  17. batch_op.add_column(sa.Column('annotation_content', sa.Text(), nullable=False))
  18. # ### end Alembic commands ###
  19. def downgrade():
  20. # ### commands auto generated by Alembic - please adjust! ###
  21. with op.batch_alter_table('app_annotation_hit_histories', schema=None) as batch_op:
  22. batch_op.drop_column('annotation_content')
  23. batch_op.drop_column('annotation_question')
  24. # ### end Alembic commands ###