WebHare community

Key is not present in table

I’m getting this error:

Key (changedby)=(0) is not present in table "entities"

Seems I can’t set 0 for

<d:integer name="changedby" references="wrd.entities" ondelete="set default">

anymore. Used to work in a non-postgres environment.

Postgres requires more information about your schema definitions. Easiest way is to go to /?app=system:dba and get a new dbschema.whlib there

Thanks, that did the trick.