kemono2/db/migrations/20210707_01_favHK-add-comment-indexes.py
2024-07-04 21:57:05 +02:00

15 lines
242 B
Python

"""
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",
)
]