89c7899ca936_.py 1004 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. """empty message
  2. Revision ID: 89c7899ca936
  3. Revises: 187385f442fc
  4. Create Date: 2024-01-21 04:10:23.192853
  5. """
  6. import sqlalchemy as sa
  7. from alembic import op
  8. # revision identifiers, used by Alembic.
  9. revision = '89c7899ca936'
  10. down_revision = '187385f442fc'
  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('sites', schema=None) as batch_op:
  16. batch_op.alter_column('description',
  17. existing_type=sa.VARCHAR(length=255),
  18. type_=sa.Text(),
  19. existing_nullable=True)
  20. # ### end Alembic commands ###
  21. def downgrade():
  22. # ### commands auto generated by Alembic - please adjust! ###
  23. with op.batch_alter_table('sites', schema=None) as batch_op:
  24. batch_op.alter_column('description',
  25. existing_type=sa.Text(),
  26. type_=sa.VARCHAR(length=255),
  27. existing_nullable=True)
  28. # ### end Alembic commands ###