> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# migration-missing-lock-timeout

> A migration statement takes a lock with no lock_timeout set.

## What it flags

The first locking statement in a migration without a known positive `lock_timeout`. A session setting can survive a commit. A transaction-local setting expires at the end of its transaction. Zero disables the timeout, and a reset restores the configured default.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "migration-missing-lock-timeout": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.