mirror of
https://github.com/lobehub/lobehub.git
synced 2026-03-26 13:19:34 +07:00
🔨 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:
@@ -274,6 +274,7 @@ table chat_groups {
|
||||
description text
|
||||
avatar text
|
||||
background_color text
|
||||
market_identifier text
|
||||
content text
|
||||
editor_data jsonb
|
||||
config jsonb
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
ALTER TABLE "chat_groups" ADD COLUMN IF NOT EXISTS "market_identifier" text;
|
||||
10726
packages/database/migrations/meta/0072_snapshot.json
Normal file
10726
packages/database/migrations/meta/0072_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
|
||||
@@ -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>>(),
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user