Error when Delete Chat

Hi Team, please help me i have this message when i try delete a chat and appearme this:

I think that is for the system and i install a new server but when i restore all the data apeparme the same error. I try connect to postgres and execute the syntax that appear in the alert but not work. Please help me

zammad=> DELETE FROM chats;
ERROR: update or delete on table “chats” violates foreign key constraint “fk_rails_288ade3093” on table “chat_sessions”
DETAIL: Key (id)=(1) is still referenced from table “chat_sessions”.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.