kemono2/db/migrations/20231111_00_BQL75-add-captions-to-posts.py

13 lines
261 B
Python
Raw Permalink Normal View History

2024-07-04 22:08:17 +02:00
"""
Add poll to posts
"""
from yoyo import step
__depends__ = {"20231110_00_BENL23-add-poll-to-post-table"}
steps = [
step("""ALTER TABLE posts ADD COLUMN captions jsonb NULL;"""),
step("""ALTER TABLE revisions ADD COLUMN captions jsonb NULL;"""),
]