kemono2/db/migrations/20230827_18_JPYk7T-change-discord-channel-idx.py

21 lines
371 B
Python
Raw Normal View History

2024-07-04 22:08:17 +02:00
"""
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;
"""
),
]