UMBRA/backend/alembic/versions/013_drop_template_duration.py
Kyle Pope b1075d6ad4 Remove duration_minutes from event templates, auto-prefill event times
- Drop duration_minutes column from event_templates (model, schema, migration)
- Remove duration field from TemplateForm UI and TypeScript types
- EventForm now defaults start to current date/time and end to +1 hour
  when no initial values are provided (new events and template-based events)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 10:55:27 +08:00

28 lines
526 B
Python

"""drop duration_minutes from event_templates
Revision ID: 013
Revises: 012
Create Date: 2026-02-23
"""
from alembic import op
import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = "013"
down_revision = "012"
branch_labels = None
depends_on = None
def upgrade() -> None:
op.drop_column("event_templates", "duration_minutes")
def downgrade() -> None:
op.add_column(
"event_templates",
sa.Column("duration_minutes", sa.Integer(), server_default="60", nullable=False),
)