fix: +products.is_hidden in db models

This commit is contained in:
2026-08-13 11:10:06 +07:00
parent ca276cdd61
commit 8444386885

View File

@@ -0,0 +1,32 @@
"""+products.is_hidden
Revision ID: 6621b149364e
Revises: 1d2e799ed0f3
Create Date: 2026-07-21 21:08:34.258587
"""
from typing import Sequence, Union
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision: str = "6621b149364e"
down_revision: Union[str, Sequence[str], None] = "1d2e799ed0f3"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None
def upgrade() -> None:
"""Upgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.add_column("products", sa.Column("is_hidden", sa.Boolean(), nullable=False))
# ### end Alembic commands ###
def downgrade() -> None:
"""Downgrade schema."""
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column("products", "is_hidden")
# ### end Alembic commands ###