kemono2/db/migrations/20221111_01_jQjnV-add-processed-json-column-to-fanbox-embeds.py
2024-07-04 21:57:05 +02:00

19 lines
447 B
Python

"""
Fix fanbox_embeds processed column
"""
from yoyo import step
__depends__ = {"20221109_01_l9fHN-add-fanbox-embeds-table"}
steps = [
step(
"ALTER TABLE fanbox_embeds DROP COLUMN processed",
"ALTER TABLE fanbox_embeds ADD COLUMN processed boolean not null default false",
),
step(
"ALTER TABLE fanbox_embeds ADD COLUMN processed varchar",
"ALTER TABLE fanbox_embeds DROP COLUMN processed",
),
]