-
-
Notifications
You must be signed in to change notification settings - Fork 91
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
Possibly dropping wrong database #212
Comments
And more than that, shouldn't the database only be renamed and not deleted and recreated? Otherwise all data is lost when you change a tenant's db username It seems like if you change the username but not the database it will try to recreate an already existing db and fail there (in fact I have had the issue already) |
@Tofandel As far as I'm aware there is no quicker way to rename databases that is supported in MySQL 5.7 and MySQL 8. What we're doing now is:
If there is another way, I would love to know 😅 Might be something for a different issue though; would be a nice improvement to have. |
To generally clarify this issue:
|
tenancy/src/Database/Mysql/Driver/Mysql.php
Line 77 in 3c68a22
@ArlonAntonius Per our chat; we may be making an assumption about the database name.
Need to be investigated
The text was updated successfully, but these errors were encountered: