"""v1-tenant_token

Revision ID: <KEY>
Revises: <KEY>
Create Date: 2022-05-18 14:55:32.794587

"""
from alembic import op
import sqlalchemy as sa
import sqlmodel

# revision identifiers, used by Alembic.
revision = "<KEY>"
down_revision = "<KEY>"
branch_labels = None
depends_on = None


def upgrade():
    op.add_column(
        "tenant",
        sa.Column("wallet_token", sqlmodel.sql.sqltypes.AutoString(), nullable=True),
    )
    op.create_index(op.f("ix_tenant_name"), "tenant", ["name"], unique=False)


def downgrade():
    op.drop_index(op.f("ix_tenant_name"), table_name="tenant")
    op.drop_column("tenant", "wallet_token")

alembic.op.drop_column alembic.op.f sqlmodel.sql.sqltypes.AutoString
[((596, 636), 'alembic.op.drop_column', 'op.drop_column', (['"""tenant"""', '"""wallet_token"""'], {}), "('tenant', 'wallet_token')\n", (610, 636), False, 'from alembic import op\n'), ((452, 474), 'alembic.op.f', 'op.f', (['"""ix_tenant_name"""'], {}), "('ix_tenant_name')\n", (456, 474), False, 'from alembic import op\n'), ((547, 569), 'alembic.op.f', 'op.f', (['"""ix_tenant_name"""'], {}), "('ix_tenant_name')\n", (551, 569), False, 'from alembic import op\n'), ((374, 408), 'sqlmodel.sql.sqltypes.AutoString', 'sqlmodel.sql.sqltypes.AutoString', ([], {}), '()\n', (406, 408), False, 'import sqlmodel\n')]