aKode fase 5: rinomina interna (crate akode-*, akode-rs/, akode-cli/, binario akode, AKODE_*, ~/.akode, snapshot)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
19
akode-rs/state/migrations/0032_threads_preview.sql
Normal file
19
akode-rs/state/migrations/0032_threads_preview.sql
Normal 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 <> ''
|
||||
);
|
||||
Reference in New Issue
Block a user