unsafe_schema
HTTP 403Creates and updates are disabled on this table for everyone, because its schema can silently delete rows.
Common causes
- The table has a
UNIQUEorPRIMARY KEYconstraint withON CONFLICT REPLACE, which deletes conflicting rows without the delete policy running (ADR 0066).
How to fix
Remove ON CONFLICT REPLACE from the table in a migration, then run castra generate.
Response
{
"type": "https://castra.mehmetozer.dev/problems/unsafe_schema",
"title": "…",
"status": 403,
"detail": "…"
}
detail says what exactly went wrong for this request.