31 lines
843 B
Python
31 lines
843 B
Python
"""add_is_popular_to_plans
|
|
|
|
Revision ID: 80be2c61e7fc
|
|
Revises: 4a9dc50ce4af
|
|
Create Date: 2026-08-20 12:47:53.790237
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision: str = '80be2c61e7fc'
|
|
down_revision: Union[str, None] = '4a9dc50ce4af'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.add_column('plans', sa.Column('is_popular', sa.Boolean(), server_default=sa.text('false'), nullable=False))
|
|
# ### end Alembic commands ###
|
|
|
|
|
|
def downgrade() -> None:
|
|
# ### commands auto generated by Alembic - please adjust! ###
|
|
op.drop_column('plans', 'is_popular')
|
|
# ### end Alembic commands ###
|