"""set threejs_render_size default to 1024

Revision ID: 005
Revises: 004
Create Date: 2026-03-01

"""
from typing import Sequence, Union
from alembic import op

revision: str = "005"
down_revision: Union[str, None] = "004"
branch_labels: Union[str, Sequence[str], None] = None
depends_on: Union[str, Sequence[str], None] = None


def upgrade() -> None:
    op.execute(
        "UPDATE system_settings SET value = '1024', updated_at = NOW() "
        "WHERE key = 'threejs_render_size' AND value = '512'"
    )


def downgrade() -> None:
    op.execute(
        "UPDATE system_settings SET value = '512', updated_at = NOW() "
        "WHERE key = 'threejs_render_size' AND value = '1024'"
    )
