kemono2/db/migrations/20211028_01_k4D9Q-add-indexes-to-flag-table.py

14 lines
457 B
Python
Raw Normal View History

2024-07-04 21:57:05 +02:00
"""
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"),
]