29 lines
680 B
Python
29 lines
680 B
Python
"""add admin notifications clear cutoff
|
|
|
|
Revision ID: d4f6a2b1c9e8
|
|
Revises: b3e7c9a2f1d4
|
|
Create Date: 2026-04-07 20:45:00.000000
|
|
|
|
"""
|
|
from typing import Sequence, Union
|
|
|
|
from alembic import op
|
|
import sqlalchemy as sa
|
|
|
|
|
|
revision: str = "d4f6a2b1c9e8"
|
|
down_revision: Union[str, None] = "b3e7c9a2f1d4"
|
|
branch_labels: Union[str, Sequence[str], None] = None
|
|
depends_on: Union[str, Sequence[str], None] = None
|
|
|
|
|
|
def upgrade() -> None:
|
|
op.add_column(
|
|
"site_settings",
|
|
sa.Column("admin_notifications_cleared_before", sa.DateTime(timezone=True), nullable=True),
|
|
)
|
|
|
|
|
|
def downgrade() -> None:
|
|
op.drop_column("site_settings", "admin_notifications_cleared_before")
|