persistent_login
persistent_login copied to clipboard
MySQL throws an error.
Error SQL query:
ALTER TABLE auth_tokens
ADD CONSTRAINT auth_tokens_ibfk_1
FOREIGN KEY (user_id
) REFERENCES users
(user_id
) ON DELETE CASCADE
MySQL said: Documentation
#1215 - Cannot add foreign key constraint
I came across the same today. I use a prefix for the database, as I use one DB for 3 roundcubes.
The issue is, that there is no table "users" which the SQL script references, that is the problem causing the error. In my case there are 3 user tables "rc_users", "gmx_users" and "gmail_users".
So the issue is, that this plugin doesn't take the optional database prefix into account.