🔨 chore: add the market identifier in chat group (#11779)

* chore: add the market identifier in chatgroup

* fix: add IF NOT EXISTS in sql

* fix: add the ts onSucess
This commit is contained in:
Shinji-Li
2026-01-24 21:07:56 +08:00
committed by GitHub
parent 3f8815d80a
commit a7dad9f3af
6 changed files with 10738 additions and 0 deletions

View File

@@ -274,6 +274,7 @@ table chat_groups {
description text
avatar text
background_color text
market_identifier text
content text
editor_data jsonb
config jsonb

View File

@@ -0,0 +1 @@
ALTER TABLE "chat_groups" ADD COLUMN IF NOT EXISTS "market_identifier" text;

File diff suppressed because it is too large Load Diff

View File

@@ -504,6 +504,13 @@
"when": 1769093425330,
"tag": "0071_add_async_task_extend",
"breakpoints": true
},
{
"idx": 72,
"version": "7",
"when": 1769251608013,
"tag": "0072_add_market_identifier_chat_group",
"breakpoints": true
}
],
"version": "6"

View File

@@ -32,6 +32,7 @@ export const chatGroups = pgTable(
description: text('description'),
avatar: text('avatar'),
backgroundColor: text('background_color'),
marketIdentifier: text('market_identifier'),
content: text('content'),
editorData: jsonb('editor_data').$type<Record<string, any>>(),

View File

@@ -292,6 +292,8 @@ export const createSessionSlice: StateCreator<
groupId: session.group || null,
id: session.id, // Add the missing groupId property
marketIdentifier: null,
// Will be set by the backend
pinned: session.pinned || false,