Base: codex-main originale (prima del fork aKode)

This commit is contained in:
Andrea
2026-11-09 10:37:42 +01:00
commit 7874033c81
10166 changed files with 2728937 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
ALTER TABLE threads ADD COLUMN preview TEXT NOT NULL DEFAULT '';
UPDATE threads
SET preview = first_user_message
WHERE preview = '' AND first_user_message <> '';
UPDATE threads
SET preview = (
SELECT thread_goals.objective
FROM thread_goals
WHERE thread_goals.thread_id = threads.id
)
WHERE preview = ''
AND EXISTS (
SELECT 1
FROM thread_goals
WHERE thread_goals.thread_id = threads.id
AND thread_goals.objective <> ''
);