Add audited user report deletion
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
"""Soft deletion and anonymization marker for user reports."""
|
||||
from alembic import op
|
||||
import sqlalchemy as sa
|
||||
|
||||
revision = "0006"
|
||||
down_revision = "0005"
|
||||
branch_labels = None
|
||||
depends_on = None
|
||||
|
||||
|
||||
def upgrade() -> None:
|
||||
op.add_column("catch_report", sa.Column("deleted_at", sa.DateTime(timezone=True)))
|
||||
|
||||
|
||||
def downgrade() -> None:
|
||||
op.drop_column("catch_report", "deleted_at")
|
||||
Reference in New Issue
Block a user