kemono2/db/migrations/20211028_01_k4D9Q-add-indexes-to-flag-table.py
2024-07-04 22:08:17 +02:00

14 lines
457 B
Python

"""
Add indexes to flag table
"""
from yoyo import step
__depends__ = {"20211014_02_J099n-add-indexes-to-new-saved-key-table"}
steps = [
step('CREATE INDEX flag_id_idx ON booru_flags USING btree ("id")', "DROP INDEX flag_id_idx"),
step('CREATE INDEX flag_user_idx ON booru_flags USING btree ("user")', "DROP INDEX flag_user_idx"),
step('CREATE INDEX flag_service_idx ON booru_flags USING btree ("service")', "DROP INDEX flag_service_idx"),
]