Ensure full projects column set in init_db to fix cross-process schema drift

Test-process reflections of the projects table cached a reduced schema
when they ran before the app server had ALTER-TABLE'd in website_url,
repo_url, cover_attachment_uid, logo_attachment_uid, platforms,
release_date, and demo_date, causing spurious KeyErrors under full-suite
ordering.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
retoor 2026-08-15 00:18:04 +02:00
parent 37d23e8581
commit 72e11db185

View File

@ -182,6 +182,13 @@ def init_db():
("title", ""),
("description", ""),
("status", ""),
("platforms", ""),
("release_date", ""),
("demo_date", ""),
("website_url", ""),
("repo_url", ""),
("cover_attachment_uid", ""),
("logo_attachment_uid", ""),
):
if not projects.has_column(column):
projects.create_column_by_example(column, example)