Quick fix to link document structure in sqlite.
This commit is contained in:
parent
6e4a66b2e1
commit
d6b252013b
|
@ -59,8 +59,12 @@ function buildRelationshipDefinitions(
|
||||||
return {
|
return {
|
||||||
tableId: generateJunctionTableID(tableId, relatedTableId),
|
tableId: generateJunctionTableID(tableId, relatedTableId),
|
||||||
definition: {
|
definition: {
|
||||||
doc1: SQLiteType.BLOB,
|
["doc1.rowId"]: SQLiteType.TEXT,
|
||||||
doc2: SQLiteType.BLOB,
|
["doc1.tableId"]: SQLiteType.TEXT,
|
||||||
|
["doc1.fieldName"]: SQLiteType.TEXT,
|
||||||
|
["doc2.rowId"]: SQLiteType.TEXT,
|
||||||
|
["doc2.tableId"]: SQLiteType.TEXT,
|
||||||
|
["doc2.fieldName"]: SQLiteType.TEXT,
|
||||||
tableId: SQLiteType.TEXT,
|
tableId: SQLiteType.TEXT,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue