File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed
firebase-firestore/src/main/java/com/google/firebase/firestore/local Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ class SQLiteSchema {
49
49
* The version of the schema. Increase this by one for each migration added to runMigrations
50
50
* below.
51
51
*/
52
- static final int VERSION = 13 ;
52
+ static final int VERSION = 14 ;
53
53
54
54
// TODO(indexing): Remove this constant and increment VERSION to enable indexing support
55
55
static final int INDEXING_SUPPORT_VERSION = VERSION + 1 ;
@@ -167,6 +167,20 @@ void runSchemaUpgrades(int fromVersion, int toVersion) {
167
167
if (fromVersion < 12 && toVersion >= 12 ) {
168
168
createBundleCache ();
169
169
}
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
+
170
184
/*
171
185
* Adding a new schema upgrade? READ THIS FIRST!
172
186
*
You can’t perform that action at this time.
0 commit comments