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:
14
akode-rs/state/migrations/0045_threads_section.sql
Normal file
14
akode-rs/state/migrations/0045_threads_section.sql
Normal file
@@ -0,0 +1,14 @@
|
||||
CREATE TABLE thread_sections (
|
||||
id TEXT PRIMARY KEY,
|
||||
name TEXT NOT NULL
|
||||
);
|
||||
|
||||
INSERT INTO thread_sections (id, name)
|
||||
VALUES ('01984de2-8f74-7c91-a3b2-5c5e937cf318', 'Pinned');
|
||||
|
||||
ALTER TABLE threads ADD COLUMN thread_section_id TEXT
|
||||
REFERENCES thread_sections(id) ON DELETE SET NULL;
|
||||
|
||||
CREATE INDEX idx_threads_section_recency_at_ms
|
||||
ON threads(archived, thread_section_id, recency_at_ms DESC, id DESC)
|
||||
WHERE thread_section_id IS NOT NULL AND preview <> '';
|
||||
Reference in New Issue
Block a user