> ## 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-mysql-lock-unspecified

> A MySQL ALTER does not state its LOCK level.

## What it flags

A MySQL `ALTER TABLE` or `CREATE INDEX` on an existing table lacking both `ALGORITHM=INSTANT` and `LOCK=NONE`. An explicit lock such as `LOCK=SHARED` can still block writes. Detected table copies are reported under `migration-mysql-table-copy`. This rule skips statements that only rename a table.

## Configuration

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

```json theme={null}
{
  "rules": { "migration-mysql-lock-unspecified": "off" }
}
```


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