ad472b61a054_add_api_provider_icon.py 823 B

1234567891011121314151617181920212223242526272829303132
  1. """add api provider icon
  2. Revision ID: ad472b61a054
  3. Revises: 3ef9b2b6bee6
  4. Create Date: 2024-01-07 02:21:23.114790
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = 'ad472b61a054'
  10. down_revision = '3ef9b2b6bee6'
  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('tool_api_providers', schema=None) as batch_op:
  16. batch_op.add_column(sa.Column('icon', sa.String(length=256), nullable=False))
  17. # ### end Alembic commands ###
  18. def downgrade():
  19. # ### commands auto generated by Alembic - please adjust! ###
  20. with op.batch_alter_table('tool_api_providers', schema=None) as batch_op:
  21. batch_op.drop_column('icon')
  22. # ### end Alembic commands ###