- W3: Merge route-change and new-alert effects into single unified effect - W6: Migration 018 extends due_lookup index with snoozed_until column - S1: Extract useConfirmAction hook from TodoItem/ReminderItem - S7: Update summary toast count on dismiss/snooze instead of dismissing Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
733 B
Python
34 lines
733 B
Python
"""Extend due lookup index to include snoozed_until
|
|
|
|
Revision ID: 018
|
|
Revises: 017
|
|
Create Date: 2026-02-24
|
|
|
|
"""
|
|
from alembic import op
|
|
|
|
|
|
# revision identifiers, used by Alembic.
|
|
revision = "018"
|
|
down_revision = "017"
|
|
branch_labels = None
|
|
depends_on = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.drop_index("ix_reminders_due_lookup", table_name="reminders")
|
|
op.create_index(
|
|
"ix_reminders_due_lookup",
|
|
"reminders",
|
|
["is_active", "is_dismissed", "remind_at", "snoozed_until"],
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_index("ix_reminders_due_lookup", table_name="reminders")
|
|
op.create_index(
|
|
"ix_reminders_due_lookup",
|
|
"reminders",
|
|
["is_active", "is_dismissed", "remind_at"],
|
|
)
|