Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MySQL throws an error. #50

Open
ghost opened this issue Mar 22, 2020 · 1 comment
Open

MySQL throws an error. #50

ghost opened this issue Mar 22, 2020 · 1 comment

Comments

@ghost
Copy link

ghost commented Mar 22, 2020

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

@djraw
Copy link

djraw commented Dec 2, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant