feat(repairs): automatic repair status emails
This commit is contained in:
parent
3ed6596bf0
commit
c58e212e3a
21 changed files with 525 additions and 36 deletions
|
|
@ -0,0 +1,29 @@
|
|||
"""extend repair notifications
|
||||
|
||||
Revision ID: e9a7c3d5b812
|
||||
Revises: d4f6a2b8c901
|
||||
Create Date: 2026-07-04 13:00:00.000000
|
||||
|
||||
"""
|
||||
from typing import Sequence, Union
|
||||
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
|
||||
revision: str = "e9a7c3d5b812"
|
||||
down_revision: Union[str, Sequence[str], None] = "d4f6a2b8c901"
|
||||
branch_labels: Union[str, Sequence[str], None] = None
|
||||
depends_on: Union[str, Sequence[str], None] = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column("repair_notification_events", sa.Column("template", sa.Text(), server_default="", nullable=False))
|
||||
op.add_column("repair_notification_events", sa.Column("success", sa.Boolean(), server_default="false", nullable=False))
|
||||
op.create_index(op.f("ix_repair_notification_events_success"), "repair_notification_events", ["success"], unique=False)
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_index(op.f("ix_repair_notification_events_success"), table_name="repair_notification_events")
|
||||
op.drop_column("repair_notification_events", "success")
|
||||
op.drop_column("repair_notification_events", "template")
|
||||
Loading…
Add table
Add a link
Reference in a new issue