Skip to content

Commit

Permalink
uprade filemapping schema :)
Browse files Browse the repository at this point in the history
  • Loading branch information
yeus committed May 11, 2024
1 parent d50ff6c commit eef9012
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/modules/taskyon/rxdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,11 +112,12 @@ export const llmTaskSchema: RxJsonSchema<LLMTaskDocType> = llmTaskSchemaLiteral;

const fileMappingSchemaLiteral = {
title: 'FileMapping schema',
version: 2,
version: 3,
type: 'object',
primaryKey: 'uuid',
properties: {
uuid: { type: 'string', maxLength: 128 },
name: { type: 'string' },
// filename in opfs
opfs: { type: 'string' },
openAIFileId: { type: 'string' },
Expand Down Expand Up @@ -215,6 +216,10 @@ export const collections = {
// for this version we simply discard everything from version 0
return null;
},
3: function (/*oldDoc*/) {
// for this version we simply discard everything from version 0
return null;
},
},
},
vectormappings: {
Expand Down

0 comments on commit eef9012

Please sign in to comment.