mirror of
https://github.com/HDInnovations/UNIT3D-Community-Edition.git
synced 2026-03-18 03:12:44 -05:00
Messages to a chatroom should not be possible to set a receiver_id. It's not used anywhere now, but in the past it must have been possible as there are few records in an older database. Unfortunately, mysql doesn't allow adding check constraint to a column that has referential actions, otherwise I would have added a check constraint for (chatroom_id IS NULL XOR receiver_id IS NULL).
10 KiB
10 KiB