File tree Expand file tree Collapse file tree
packages/common/src/local-first Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -336,9 +336,12 @@ export const createDbWorkerForPlatform = (
336336 DbWorkerInput ,
337337 DbWorkerOutput ,
338338 DbWorkerDeps
339- > ( { init : createDbWorkerDeps ( platformDeps ) , handlers } ) ;
339+ > ( {
340+ init : createInit ( platformDeps ) ,
341+ handlers,
342+ } ) ;
340343
341- const createDbWorkerDeps =
344+ const createInit =
342345 ( platformDeps : DbWorkerPlatformDeps ) =>
343346 async (
344347 initMessage : Extract < DbWorkerInput , { type : "init" } > ,
@@ -376,16 +379,6 @@ const createDbWorkerDeps =
376379 } > ( sql `select protocolVersion from evolu_version limit 1;` ) ;
377380 if ( ! currentVersion . ok ) return currentVersion ;
378381
379- // TODO: Handle version migrations here if needed
380- // const [{ protocolVersion }] = protocolVersionResult.value.rows;
381- // if (protocolVersion < currentProtocolVersion) {
382- // const migrateResult = migrateDatabase({ sqlite })(
383- // protocolVersion,
384- // currentProtocolVersion
385- // );
386- // if (!migrateResult.ok) return migrateResult;
387- // }
388-
389382 const configResult = sqlite . exec < {
390383 clock : TimestampBytes ;
391384 appOwnerId : OwnerId ;
You can’t perform that action at this time.
0 commit comments