kemono2/db/migrations/20230827_18_JPYk7T-change-discord-channel-idx.py
2024-07-04 21:57:05 +02:00

21 lines
371 B
Python

"""
Add table complete_imports
"""
from yoyo import step
__depends__ = {"20230827_00_USDf5-add-index-to-revisions"}
steps = [
step(
"""
CREATE INDEX discord_posts_channel_published_idx ON discord_posts USING btree (channel, published);
"""
),
step(
"""
DROP INDEX IF EXISTS channel_idx;
"""
),
]