"""Add is_enabled and thumbnail_path to presentation_layout_codes

Revision ID: d4e8f1a2b3c5
Revises: c7a3f8e21d4b
Create Date: 2026-03-01 10:00:00.000000
"""

from alembic import op
import sqlalchemy as sa


revision = 'd4e8f1a2b3c5'
down_revision = 'c7a3f8e21d4b'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column(
        'presentation_layout_codes',
        sa.Column('is_enabled', sa.Boolean(), nullable=True, server_default=sa.text('true'))
    )
    op.add_column(
        'presentation_layout_codes',
        sa.Column('thumbnail_path', sa.String(), nullable=True)
    )


def downgrade():
    op.drop_column('presentation_layout_codes', 'thumbnail_path')
    op.drop_column('presentation_layout_codes', 'is_enabled')
