A slide is drawn at its playlist's shape, as large as fits the screen's picture, the bands in its own background (or stretched, the screen's choice). Playlists and library slides may have a shape of their own (aspect, Alembic 0045). Signage -> Screens -> Calibrate the picture: the TV outlines its area with arrows and its size, each edge moves pixel by pixel or a preset centres a shape; the TV follows live (signage.calibrate) and reports its window (POST /screen/viewport). Plan 6R.13, F-110. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
29 lines
964 B
Python
29 lines
964 B
Python
"""Signage slide shapes (6R.13, owner 2026-11-22): a playlist or a library slide may be built for a
|
|
custom shape ("21:9", "16:10", …) besides landscape / portrait. NULL = its orientation's 16:9 / 9:16.
|
|
|
|
Revision ID: 0045_signage_shapes
|
|
Revises: 0044_signage_saved_slides
|
|
Create Date: 2026-11-22 10:00:00
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
revision = '0045_signage_shapes'
|
|
down_revision = '0044_signage_saved_slides'
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
with op.batch_alter_table('signage_playlists') as b:
|
|
b.add_column(sa.Column('aspect', sa.String(), nullable=True))
|
|
with op.batch_alter_table('signage_saved_slides') as b:
|
|
b.add_column(sa.Column('aspect', sa.String(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
with op.batch_alter_table('signage_saved_slides') as b:
|
|
b.drop_column('aspect')
|
|
with op.batch_alter_table('signage_playlists') as b:
|
|
b.drop_column('aspect')
|