# X_DB_ROW_SECURITY_DRIFT

## Means

a tenant table and database.rowSecurity disagree about its policy

## Typical cause

database.rowSecurity is on and a tenant table carries no forced tenant policy, or it is off and one still does — the migrations, the flag or the live database moved without the others

## Fix

`x db gen "row security"`

[Entity and database](/error-codes#entity-and-database)
