kemono2/db/migrations/20231115_00_TAI3e31-add-deleted_at-to-comments.py

14 lines
300 B
Python
Raw Normal View History

2024-07-04 22:08:17 +02:00
"""
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;"""),
]