Skip to content

Commit 5e84782

Browse files
IndexedDb Schema Migration
1 parent 3e1053f commit 5e84782

File tree

5 files changed

+320
-188
lines changed

5 files changed

+320
-188
lines changed

packages/firestore/src/local/indexeddb_migrations.ts

Lines changed: 0 additions & 123 deletions
This file was deleted.

packages/firestore/src/local/indexeddb_persistence.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,20 @@ import { AutoId } from '../util/misc';
2525
import { IndexedDbMutationQueue } from './indexeddb_mutation_queue';
2626
import { IndexedDbQueryCache } from './indexeddb_query_cache';
2727
import { IndexedDbRemoteDocumentCache } from './indexeddb_remote_document_cache';
28-
import { ALL_STORES, DbOwner, DbOwnerKey } from './indexeddb_schema';
29-
import { SCHEMA_VERSION } from './indexeddb_schema';
28+
import {
29+
ALL_STORES,
30+
createOrUpgradeDb,
31+
DbOwner,
32+
DbOwnerKey,
33+
SCHEMA_VERSION
34+
} from './indexeddb_schema';
3035
import { LocalSerializer } from './local_serializer';
3136
import { MutationQueue } from './mutation_queue';
3237
import { Persistence } from './persistence';
3338
import { PersistencePromise } from './persistence_promise';
3439
import { QueryCache } from './query_cache';
3540
import { RemoteDocumentCache } from './remote_document_cache';
3641
import { SimpleDb, SimpleDbTransaction } from './simple_db';
37-
import { createOrUpgradeDb } from './indexeddb_migrations';
3842

3943
const LOG_TAG = 'IndexedDbPersistence';
4044

0 commit comments

Comments
 (0)