Skip to main content

Variable: DEFAULT_MIGRATION_LOCK_KEY

const DEFAULT_MIGRATION_LOCK_KEY: 1835624306 = 0x6d69_6772

Defined in: migrations/runner.ts:16

Stable by contract: every process that runs migrations against a database competes for this lock. It must differ from the key the application's own syncWithAdvisoryLock uses — a migration reaches that sync on another connection, and the same key on two connections is a deadlock.