2021-09-05 12:30:11 +02:00
|
|
|
"""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.
|
2022-05-09 16:26:23 +02:00
|
|
|
revision = "f73251d1d825"
|
|
|
|
down_revision = "f6e7d2e01be1"
|
2021-09-05 12:30:11 +02:00
|
|
|
branch_labels = None
|
|
|
|
depends_on = None
|
|
|
|
|
|
|
|
|
|
|
|
def upgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2022-05-09 16:26:23 +02:00
|
|
|
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
|
2021-09-05 12:30:11 +02:00
|
|
|
)
|
|
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
|
|
|
|
|
|
def downgrade():
|
|
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
2022-05-09 16:26:23 +02:00
|
|
|
op.drop_index(op.f("ix_scodoc_site_config_name"), table_name="scodoc_site_config")
|
|
|
|
op.drop_table("scodoc_site_config")
|
2021-09-05 12:30:11 +02:00
|
|
|
# ### end Alembic commands ###
|