Skip to content

Commit a8e393c

Browse files
committed
merge to resolve conflict
1 parent 4e76e7a commit a8e393c

File tree

1 file changed

+15
-1
lines changed
  • firebase-firestore/src/main/java/com/google/firebase/firestore/local

1 file changed

+15
-1
lines changed

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

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class SQLiteSchema {
4949
* The version of the schema. Increase this by one for each migration added to runMigrations
5050
* below.
5151
*/
52-
static final int VERSION = 13;
52+
static final int VERSION = 14;
5353

5454
// TODO(indexing): Remove this constant and increment VERSION to enable indexing support
5555
static final int INDEXING_SUPPORT_VERSION = VERSION + 1;
@@ -167,6 +167,20 @@ void runSchemaUpgrades(int fromVersion, int toVersion) {
167167
if (fromVersion < 12 && toVersion >= 12) {
168168
createBundleCache();
169169
}
170+
171+
if (fromVersion < 13 && toVersion >= 13) {
172+
addPathLength();
173+
ensurePathLength();
174+
}
175+
176+
if (fromVersion < 14 && toVersion >= 14) {
177+
Preconditions.checkState(
178+
Persistence.OVERLAY_SUPPORT_ENABLED || Persistence.INDEXING_SUPPORT_ENABLED);
179+
createOverlays();
180+
createDataMigrationTable();
181+
addPendingDataMigration(Persistence.DATA_MIGRATION_BUILD_OVERLAYS);
182+
}
183+
170184
/*
171185
* Adding a new schema upgrade? READ THIS FIRST!
172186
*

0 commit comments

Comments
 (0)