kemono2/db/migrations/20210707_01_favHK-add-comment-indexes.py

15 lines
242 B
Python
Raw Normal View History

2024-07-04 21:57:05 +02:00
"""
Add comment indexes
"""
from yoyo import step
__depends__ = {"20210614_01_YW8Os-add-comment-tables"}
steps = [
step(
'CREATE INDEX comment_idx ON comments USING btree ("post_id")',
"DROP INDEX comment_idx",
)
]