This commit is contained in:
2026-05-11 15:23:34 +08:00
parent ed70a140a2
commit 547cbbb4a5
25 changed files with 721 additions and 332 deletions
+2 -2
View File
@@ -20,14 +20,14 @@ CREATE TABLE IF NOT EXISTS archives (
series TEXT,
tags JSONB NOT NULL DEFAULT '[]'::jsonb,
metadata JSONB NOT NULL DEFAULT '{}'::jsonb,
content TEXT,
raw TEXT,
chunks JSONB NOT NULL DEFAULT '[]'::jsonb,
created_time TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_time TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
)
SQL,
'ALTER TABLE archives ADD COLUMN IF NOT EXISTS summary TEXT',
'ALTER TABLE archives DROP COLUMN IF EXISTS content',
'ALTER TABLE archives DROP COLUMN IF EXISTS raw',
<<<SQL
CREATE TABLE IF NOT EXISTS chunks (
id BIGSERIAL PRIMARY KEY,