"""Table configuration site

Revision ID: f73251d1d825
Revises: f6e7d2e01be1
Create Date: 2021-09-04 23:10:39.149965

"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = "f73251d1d825"
down_revision = "f6e7d2e01be1"
branch_labels = None
depends_on = None


def upgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.create_table(
        "scodoc_site_config",
        sa.Column("id", sa.Integer(), nullable=False),
        sa.Column("name", sa.String(length=128), nullable=False),
        sa.Column("value", sa.Text(), nullable=True),
        sa.PrimaryKeyConstraint("id"),
    )
    op.create_index(
        op.f("ix_scodoc_site_config_name"), "scodoc_site_config", ["name"], unique=False
    )
    # ### end Alembic commands ###


def downgrade():
    # ### commands auto generated by Alembic - please adjust! ###
    op.drop_index(op.f("ix_scodoc_site_config_name"), table_name="scodoc_site_config")
    op.drop_table("scodoc_site_config")
    # ### end Alembic commands ###