23db93619b9d_add_message_files_into_agent_thought.py 851 B

1234567891011121314151617181920212223242526272829303132
  1. """add message files into agent thought
  2. Revision ID: 23db93619b9d
  3. Revises: 8ae9bc661daa
  4. Create Date: 2024-01-18 08:46:37.302657
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = '23db93619b9d'
  10. down_revision = '8ae9bc661daa'
  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('message_agent_thoughts', schema=None) as batch_op:
  16. batch_op.add_column(sa.Column('message_files', sa.Text(), nullable=True))
  17. # ### end Alembic commands ###
  18. def downgrade():
  19. # ### commands auto generated by Alembic - please adjust! ###
  20. with op.batch_alter_table('message_agent_thoughts', schema=None) as batch_op:
  21. batch_op.drop_column('message_files')
  22. # ### end Alembic commands ###