kemono2/db/migrations/20231014_01_fod03f-dnp-import-field.py
2024-07-04 21:57:05 +02:00

13 lines
347 B
Python

"""
DNP was not in yoyo migrations before...
"""
from yoyo import step
__depends__ = {"20230930_00_TNd34a-add-created-timestamp-to-favs"}
steps = [
step("""ALTER TABLE "public"."dnp" ADD COLUMN IF NOT EXISTS "import" boolean NOT NULL DEFAULT FALSE;"""),
step("""ALTER TABLE "public"."dnp" ALTER COLUMN "import" SET DEFAULT TRUE;"""),
]