"""Convert User.avatar_url to TEXT

Revision ID: c46c82755491
Revises: 70121ed63b4b
Create Date: 2024-08-29 16:39:58.247877

"""

import sqlalchemy as sa
from alembic import op

# Polar Custom Imports

# revision identifiers, used by Alembic.
revision = "c46c82755491"
down_revision = "70121ed63b4b"
branch_labels: tuple[str] | None = None
depends_on: tuple[str] | None = None


def upgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "users",
        "avatar_url",
        existing_type=sa.VARCHAR(length=1024),
        type_=sa.Text(),
        existing_nullable=True,
    )
    # ### end Alembic commands ###


def downgrade() -> None:
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "users",
        "avatar_url",
        existing_type=sa.Text(),
        type_=sa.VARCHAR(length=1024),
        existing_nullable=True,
    )
    # ### end Alembic commands ###
