kemono2/db/migrations/20211212_01_K1PlV-add-size-and-image-hash-columns-to-file-table.py
2024-07-04 22:08:17 +02:00

19 lines
377 B
Python

"""
Add size and image hash columns to file table
"""
from yoyo import step
__depends__ = {"20211124_01_O8GOk-add-revisions-table"}
steps = [
step(
"ALTER TABLE files ADD COLUMN size int",
"ALTER TABLE files DROP COLUMN size",
),
step(
"ALTER TABLE files ADD COLUMN ihash varchar",
"ALTER TABLE files DROP COLUMN ihash",
),
]