"""Add lighting_only column to render_templates

When lighting_only=True the render script uses the template's World/HDRI for
lighting but always computes an auto-camera for product framing.  This is
useful for HDR-only templates that don't define a fixed camera angle.

Revision ID: 024
Revises: 023
Create Date: 2026-03-03
"""
from alembic import op
import sqlalchemy as sa

revision = '024'
down_revision = '023'
branch_labels = None
depends_on = None


def upgrade():
    op.add_column(
        'render_templates',
        sa.Column(
            'lighting_only',
            sa.Boolean(),
            nullable=False,
            server_default='false',
        ),
    )


def downgrade():
    op.drop_column('render_templates', 'lighting_only')
