2024-03-19-15-27_8dbb8f38ef77.py 835 B

12345678910111213141516171819202122232425262728293031
  1. """add extra body to assistants
  2. Revision ID: 8dbb8f38ef77
  3. Revises: e7339aab6549
  4. Create Date: 2024-03-19 15:27:39.793603
  5. """
  6. from typing import Sequence, Union
  7. from alembic import op
  8. import sqlalchemy as sa
  9. import sqlmodel
  10. # revision identifiers, used by Alembic.
  11. revision: str = '8dbb8f38ef77'
  12. down_revision: Union[str, None] = 'e7339aab6549'
  13. branch_labels: Union[str, Sequence[str], None] = None
  14. depends_on: Union[str, Sequence[str], None] = None
  15. def upgrade() -> None:
  16. # ### commands auto generated by Alembic - please adjust! ###
  17. op.add_column('assistant', sa.Column('extra_body', sa.JSON(), nullable=True))
  18. # ### end Alembic commands ###
  19. def downgrade() -> None:
  20. # ### commands auto generated by Alembic - please adjust! ###
  21. op.drop_column('assistant', 'extra_body')
  22. # ### end Alembic commands ###