Skip to content

Commit b7915e3

Browse files
author
Brian Chen
authored
Remove index_value from primary key of index_entries (#2960)
1 parent 9b18d72 commit b7915e3

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

firebase-firestore/firebase-firestore.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ dependencies {
155155
}
156156

157157
compileOnly 'com.google.auto.value:auto-value-annotations:1.6.6'
158+
androidTestAnnotationProcessor 'com.google.auto.value:auto-value:1.6.5'
158159
annotationProcessor 'com.google.auto.value:auto-value:1.6.5'
159160

160161
testImplementation 'junit:junit:4.12'

firebase-firestore/src/main/java/com/google/firebase/firestore/local/SQLiteSchema.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ private void createFieldIndex() {
367367
+ "index_value BLOB, " // field value pairs
368368
+ "uid TEXT, " // user id or null if there are no pending mutations
369369
+ "document_id TEXT, "
370-
+ "PRIMARY KEY (index_id, index_value, uid, document_id))");
370+
+ "PRIMARY KEY (index_id, uid, document_id))");
371371
});
372372
}
373373

0 commit comments

Comments
 (0)