@chatman-media/storage 1.29.0 → 1.29.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2634,7 +2634,7 @@ var kbDocuments = pgTable("kb_documents", {
|
|
|
2634
2634
|
OR (${t.scopeType} = 'stage' AND ${t.funnelId} IS NOT NULL AND ${t.stageSlug} IS NOT NULL)
|
|
2635
2635
|
)`),
|
|
2636
2636
|
check("kb_documents_file_size_check", sql`${t.fileSizeBytes} IS NULL OR ${t.fileSizeBytes} >= 0`),
|
|
2637
|
-
uniqueIndex("uniq_kb_source_hash").on(t.source, t.contentHash),
|
|
2637
|
+
uniqueIndex("uniq_kb_source_hash").on(t.tenantId, t.source, t.contentHash),
|
|
2638
2638
|
uniqueIndex("uniq_kb_docs_file_storage_key").on(t.fileStorageKey).where(sql`file_storage_key IS NOT NULL`),
|
|
2639
2639
|
index("idx_kb_docs_topic").on(t.topic).where(sql`topic IS NOT NULL`),
|
|
2640
2640
|
index("idx_kb_docs_scope").on(t.tenantId, t.scopeType, t.funnelId, t.stageSlug)
|
package/package.json
CHANGED