This commit is contained in:
admin 2026-10-04 03:32:12 +00:00
parent af7fc6ab99
commit 00465485f1

6
app.py
View File

@ -1309,6 +1309,7 @@ def init_db() -> None:
CREATE TABLE IF NOT EXISTS user_profiles (
user_id INTEGER PRIMARY KEY,
display_name TEXT,
badge_text TEXT,
bio TEXT NOT NULL DEFAULT '',
bio_mode TEXT NOT NULL DEFAULT 'txt',
website TEXT,
@ -1690,6 +1691,7 @@ def init_db() -> None:
INSERT OR IGNORE INTO user_profiles (
user_id,
display_name,
badge_text,
bio,
bio_mode,
website,
@ -1700,6 +1702,7 @@ def init_db() -> None:
id,
username,
'',
'',
'txt',
'',
'',
@ -1812,12 +1815,13 @@ def bootstrap_admin() -> None:
INSERT OR IGNORE INTO user_profiles (
user_id,
display_name,
badge_text,
bio,
bio_mode,
website,
location,
updated_at
) VALUES (?, ?, '', 'txt', '', '', ?)
) VALUES (?, ?, '', '', 'txt', '', '', ?)
""",
(user_id, username, now_iso()),
)