Backend: - Add due_time (TIME, nullable) column to todos model + migration 015 - Add due_time to Create/Update/Response schemas Frontend: - Add due_time to Todo type - TodoForm: add time input, convert empty strings to null before sending (fixes date appearing required — Pydantic rejected '' as date) - TodoItem: display clock icon + time when due_time is set Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
25 lines
428 B
Python
25 lines
428 B
Python
"""Add due_time column to todos
|
|
|
|
Revision ID: 015
|
|
Revises: 014
|
|
Create Date: 2026-02-23
|
|
|
|
"""
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "015"
|
|
down_revision = "014"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column("todos", sa.Column("due_time", sa.Time(), nullable=True))
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("todos", "due_time")
|