kemono2/db/migrations/20231115_00_TAI3e31-add-deleted_at-to-comments.py
2024-07-04 21:57:05 +02:00

14 lines
300 B
Python

"""
Add deleted_at to comments
"""
from yoyo import step
__depends__ = {"20231114_00_FOA436-add-comment-revisions-table"}
steps = [
step("""ALTER TABLE comments ADD COLUMN deleted_at timestamp NULL;"""),
step("""ALTER TABLE comments_revisions ADD COLUMN deleted_at timestamp NULL;"""),
]