- Add first_day_of_week column to settings (0=Sunday, 1=Monday) - Add Calendar section in Settings with toggle button - Pass firstDay to FullCalendar from settings - Align calendar toolbar and sidebar header to h-16 (matches UMBRA header) - Remove border/padding wrapper from calendar grid for full-width layout Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
585 B
Python
24 lines
585 B
Python
"""Add first_day_of_week to settings
|
|
|
|
Revision ID: 008
|
|
Revises: 007
|
|
Create Date: 2026-02-22
|
|
"""
|
|
from typing import Sequence, Union
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
# revision identifiers
|
|
revision: str = '008'
|
|
down_revision: Union[str, None] = '007'
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column('settings', sa.Column('first_day_of_week', sa.Integer(), server_default='0', nullable=False))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column('settings', 'first_day_of_week')
|