"""node state add

Revision ID: <KEY>
Revises: ad46aa4e<PASSWORD>
Create Date: 2021-11-15 21:08:52.990959

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

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


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.add_column(
        "preps", sa.Column("node_state", sqlmodel.sql.sqltypes.AutoString(), nullable=True)
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.alter_column(
        "proposals", "id", existing_type=sa.INTEGER(), nullable=False, autoincrement=True
    )
    op.drop_column("preps", "node_state")
    # ### end Alembic commands ###

sqlmodel.sql.sqltypes.AutoString sqlalchemy.INTEGER alembic.op.drop_column
[((739, 776), 'alembic.op.drop_column', 'op.drop_column', (['"""preps"""', '"""node_state"""'], {}), "('preps', 'node_state')\n", (753, 776), False, 'from alembic import op\n'), ((441, 475), 'sqlmodel.sql.sqltypes.AutoString', 'sqlmodel.sql.sqltypes.AutoString', ([], {}), '()\n', (473, 475), False, 'import sqlmodel\n'), ((680, 692), 'sqlalchemy.INTEGER', 'sa.INTEGER', ([], {}), '()\n', (690, 692), True, 'import sqlalchemy as sa\n')]