Skip to content

Commit 439cb89

Browse files
committed
Remove commented-out code
1 parent adfd6af commit 439cb89

1 file changed

Lines changed: 5 additions & 12 deletions

File tree

  • packages/common/src/local-first

packages/common/src/local-first/Db.ts

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)