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:
parent
37d23e8581
commit
72e11db185
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user