refactor(runtime): centralize lifecycle constants
This commit is contained in:
1 parent
e540cbb2a6
commit
fa006524c2
6 files changed
+49
-14
No files matched your search
@@ -1,4 +1,5 @@
|
||||
import log from "electron-log/main.js";
|
||||
import { STALE_LOCK_TIMEOUT_MS } from "../../constants";
|
||||
import type { Migration, MigrationDeps } from "./types";
|
||||
import { columnExists, nowIso, tableExists } from "./types";
|
||||
|
||||
@@ -42,8 +43,6 @@ import { columnExists, nowIso, tableExists } from "./types";
|
||||
* already orphaned pre-migration.
|
||||
*/
|
||||
|
||||
const STALE_LOCK_TIMEOUT_MS = 15 * 60 * 1000;
|
||||
|
||||
export function createMigrationsV50V50(deps: MigrationDeps): Migration[] {
|
||||
const { db } = deps;
|
||||
return [
|
||||
|
||||
Reference in new issue
Block a user