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
Database upgrade for mySQL fails for 2020020101.sql #7277
Comments
Strange, the query is not supposed to remove any rows. Maybe MySQL/MariaDB bug. |
Thanks for the feedback, I'll investigate further then and let you know about the outcome. |
So, it turns out there are several problems with the intended updates.
1 and 3 can be fixed by a modified SQL script. 2 can't be fixed automatically in a generic way, only by reverting back to the previously used case sensitivity via collation
|
You say that Point 2. has been fixed. |
results in:
Tested on MariaDB, 10.3.22-MariaDB-0+deb10u1 |
Fixed above error. |
No, you still need Quote from the MariaDB docs:
The row_format will already be |
Applied suggested changes. |
I tried upgrading from 9a8f4cb (MySQL schema 2019092900) to 0fbd184 (MySQL schema 2020020101) today.
The updates for 2019092900 and 2020020100 went smooth.
But in 2020020101, running the statement
ALTER TABLE
usersCONVERT TO CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
fails with
ERROR 1834 (HY000) at line 2: Cannot delete rows from table which is parent in a foreign key constraint 'user_id_fk_cache' of table 'cache'
I am using MariaDB 10.1.29 but already changed the settings needed for big indexes (as mentioned in #7212).
The text was updated successfully, but these errors were encountered: