@@ -128,7 +128,11 @@ import {
128
128
import { MemoryCollectionParentIndex } from './memory_index_manager' ;
129
129
import { MemoryEagerDelegate , MemoryPersistence } from './memory_persistence' ;
130
130
import { PersistencePromise } from './persistence_promise' ;
131
- import { SimpleDbSchemaConverter , SimpleDbTransaction } from './simple_db' ;
131
+ import {
132
+ SimpleDbSchemaConverter ,
133
+ SimpleDbTransaction ,
134
+ type IdbDatabaseDebugIdPair
135
+ } from './simple_db' ;
132
136
133
137
/** Performs database creation and schema upgrades. */
134
138
export class SchemaConverter implements SimpleDbSchemaConverter {
@@ -142,7 +146,7 @@ export class SchemaConverter implements SimpleDbSchemaConverter {
142
146
* and local feature development.
143
147
*/
144
148
createOrUpgrade (
145
- db : IDBDatabase ,
149
+ idbDatabaseDebugIdPair : IdbDatabaseDebugIdPair ,
146
150
txn : IDBTransaction ,
147
151
fromVersion : number ,
148
152
toVersion : number
@@ -154,7 +158,13 @@ export class SchemaConverter implements SimpleDbSchemaConverter {
154
158
`Unexpected schema upgrade from v${ fromVersion } to v${ toVersion } .`
155
159
) ;
156
160
157
- const simpleDbTransaction = new SimpleDbTransaction ( 'createOrUpgrade' , txn ) ;
161
+ const { idbDatabase : db , debugId : dbDebugId } = idbDatabaseDebugIdPair ;
162
+
163
+ const simpleDbTransaction = new SimpleDbTransaction (
164
+ 'createOrUpgrade' ,
165
+ txn ,
166
+ { dbDebugId }
167
+ ) ;
158
168
159
169
if ( fromVersion < 1 && toVersion >= 1 ) {
160
170
createPrimaryClientStore ( db ) ;
0 commit comments