OK. I tried do get it work.
mysql
USE nextcloud;
DELETE FROM oc_notifications;
DELETE FROM oc_notifications_pushtokens;
q
Now I don’t get any further errors but I don’t get any notifications either, which I did (sometimes) before.
I also logged out at all devices and logged in again.
Did I miss something?
Cheers bitzers_cap