mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-10 23:48:09 -05:00
improvement(chunk-config): migrate unused default for consistency (#913)
This commit is contained in:
committed by
GitHub
parent
0ec91f9010
commit
061bd6d5a8
1
apps/sim/db/migrations/0070_charming_wrecking_crew.sql
Normal file
1
apps/sim/db/migrations/0070_charming_wrecking_crew.sql
Normal file
@@ -0,0 +1 @@
|
||||
ALTER TABLE "knowledge_base" ALTER COLUMN "chunking_config" SET DEFAULT '{"maxSize": 1024, "minSize": 1, "overlap": 200}';
|
||||
5863
apps/sim/db/migrations/meta/0070_snapshot.json
Normal file
5863
apps/sim/db/migrations/meta/0070_snapshot.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -484,6 +484,13 @@
|
||||
"when": 1754603754177,
|
||||
"tag": "0069_lonely_spirit",
|
||||
"breakpoints": true
|
||||
},
|
||||
{
|
||||
"idx": 70,
|
||||
"version": "7",
|
||||
"when": 1754682155062,
|
||||
"tag": "0070_charming_wrecking_crew",
|
||||
"breakpoints": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -719,7 +719,7 @@ export const knowledgeBase = pgTable(
|
||||
// Chunking configuration stored as JSON for flexibility
|
||||
chunkingConfig: json('chunking_config')
|
||||
.notNull()
|
||||
.default('{"maxSize": 1024, "minSize": 100, "overlap": 200}'),
|
||||
.default('{"maxSize": 1024, "minSize": 1, "overlap": 200}'),
|
||||
|
||||
// Soft delete support
|
||||
deletedAt: timestamp('deleted_at'),
|
||||
|
||||
Reference in New Issue
Block a user