diff --git a/db.mjs b/db.mjs index a371908..11356b2 100644 --- a/db.mjs +++ b/db.mjs @@ -224,7 +224,7 @@ export async function migrateSchema(pool) { source_session_id VARCHAR(128) NULL, source_user_id CHAR(36) NULL, use_count BIGINT NOT NULL DEFAULT 0, - embedding JSON NULL, + \`embedding\` JSON NULL, created_at BIGINT NOT NULL, updated_at BIGINT NOT NULL, KEY idx_h5_experience_scope_updated (scope, updated_at), diff --git a/schema.sql b/schema.sql index bd1976d..3b97471 100644 --- a/schema.sql +++ b/schema.sql @@ -1014,7 +1014,7 @@ CREATE TABLE IF NOT EXISTS h5_blocked_words ( -- Shared experience store (etat C): all goosed Worker instances read/write the -- same learned experience so capability is not siloed per instance. Built on --- MySQL first with a keyword + recency retrieval; `embedding` is reserved for a +-- MySQL first with keyword + recency retrieval. `embedding` is reserved for a -- later move to PostgreSQL + pgvector without changing the calling contract. CREATE TABLE IF NOT EXISTS h5_experience ( id CHAR(36) PRIMARY KEY, @@ -1026,7 +1026,7 @@ CREATE TABLE IF NOT EXISTS h5_experience ( source_session_id VARCHAR(128) NULL, source_user_id CHAR(36) NULL, use_count BIGINT NOT NULL DEFAULT 0, - embedding JSON NULL, + `embedding` JSON NULL, created_at BIGINT NOT NULL, updated_at BIGINT NOT NULL, KEY idx_h5_experience_scope_updated (scope, updated_at), diff --git a/wechat-mp.test.mjs b/wechat-mp.test.mjs index 7f6d036..318deee 100644 --- a/wechat-mp.test.mjs +++ b/wechat-mp.test.mjs @@ -1312,7 +1312,6 @@ test('wechat mp service recreates poisoned dedicated session after bare completi assert.match(payload.text.content, /已完成/); assert.match(payload.text.content, /页面生成未完成|hello\.html/); }); - test('wechat mp service blocks schedule confirmation when no schedule item was written', async () => { const token = 'token'; const timestamp = '1710000000';