kemono2/db/migrations/20210610_01_w7oGH-add-updated-field-to-lookup-table.py

15 lines
309 B
Python
Raw Normal View History

2024-07-04 21:57:05 +02:00
"""
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",
)
]