"""Drop computers.isshopfloor (redundant with the Shopfloor PC type)

The flag was never populated (0 rows) and duplicated the 'Shopfloor' computer
type. Shopfloor classification now lives entirely in computertype.

Revision ID: 7d12_drop_isshopfloor
Revises: 7d11_locationtype_color
Create Date: 2026-07-09

"""
from alembic import op
import sqlalchemy as sa


revision = '7d12_drop_isshopfloor'
down_revision = '7d11_locationtype_color'
branch_labels = None
depends_on = None


def upgrade():
    op.drop_column('computers', 'isshopfloor')


def downgrade():
    op.add_column('computers', sa.Column('isshopfloor', sa.Boolean(), nullable=True, server_default='0'))
