kemono2/db/migrations/20230124_01_aT7eI-add-welcome-message-table.py

23 lines
506 B
Python
Raw Normal View History

2024-07-04 21:57:05 +02:00
"""
Add welcome message table
"""
from yoyo import step
__depends__ = {"20211212_02_LdfLH-change-type-of-size-column-in-file-table"}
steps = [
step(
"""
CREATE TABLE introductory_messages (
service varchar not null,
user_id varchar not null,
hash varchar not null,
content varchar not null,
added timestamp not null DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (service, user_id, hash)
);
"""
)
]