-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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 migration to 1.17.0 fails on mariadb #1182
Comments
This is weird, i just did the exact same, and have no issues. Also using the same mariadb version
It is also strange that you can see these error's at all, because foreign-key checking is disabled during migrations because the migrations could create these issues when the order is not completely ok, or we need to do some specials stuff like migrating some data from table x to y. If you start the server again, does it still produce the same error? |
Wel that is strange. It looks like it is trying to retry it a few times. |
I got into the error and I think I got a clue: Collation mismatches. Not a big deal. |
Great that you have find the solution. |
I would suggest verifying those wouldn't hurt. In my case I think it happened via migrating via various MySQL/MariaDB hosts... |
Thanks, i have added this to the meta feature request #246 |
Subject of the issue
#1005 - Can't create table bitwarden.favorites (errno: 150 "Foreign key constraint is incorrectly formed")
Your environment
1.16.3
Steps to reproduce
Expected behaviour
I would expect the database migration to work
Actual behaviour
Docker container looped on starting the migrations. Trying to run it manually it said
#1005 - Can't create table `bitwarden`.`favorites` (errno: 150 "Foreign key constraint is incorrectly formed")
which is related to
in the up script
Relevant logs
The text was updated successfully, but these errors were encountered: