kemono2/db/migrations/20211212_01_K1PlV-add-size-and-image-hash-columns-to-file-table.py

19 lines
377 B
Python
Raw Normal View History

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