kemono2/db/migrations/20210610_01_w7oGH-add-updated-field-to-lookup-table.py
2024-07-04 21:57:05 +02:00

15 lines
309 B
Python

"""
Add updated field to lookup table
"""
from yoyo import step
__depends__ = {"20210529_01_LO1OU-add-primary-keys-to-discord-posts"}
steps = [
step(
"ALTER TABLE lookup ADD COLUMN updated timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP",
"ALTER TABLE lookup DROP COLUMN updated",
)
]