> ## 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-not-null-without-default

> A NOT NULL column is added without a default, which fails once rows exist.

## What it flags

Adding a `NOT NULL` column without a default. PostgreSQL can reject the change when the table has rows, and MySQL can reject inserts from older application versions in strict mode.

## Configuration

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

```json theme={null}
{
  "rules": { "migration-not-null-without-default": "off" }
}
```


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