mirror of
https://github.com/R0m1k3/Priceflow.git
synced 2026-10-17 12:18:17 +02:00
27 lines
600 B
Python
27 lines
600 B
Python
"""add_is_available_to_items
|
|
|
|
Revision ID: add_is_available
|
|
Revises:
|
|
Create Date: 2025-11-23
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = 'add_is_available'
|
|
down_revision = 'b2c3d4e5f6g7' # Points to add_search_sites
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade():
|
|
# Add is_available column to items table
|
|
op.add_column('items', sa.Column('is_available', sa.Boolean(), nullable=True, server_default='true'))
|
|
|
|
|
|
def downgrade():
|
|
# Remove is_available column from items table
|
|
op.drop_column('items', 'is_available')
|