Fixed foreign-key (mariadb) errors.
When using MariaDB v10.5+ Foreign-Key errors were popping up because of some changes in that version. To mitigate this on MariaDB and other MySQL forks those errors are now catched, and instead of a replace_into an update will happen. I have tested this as thorough as possible with MariaDB 10.5, 10.4, 10.3 and the default MySQL on Ubuntu Focal. And tested it again using sqlite, all seems to be ok on all tables. resolves #1081. resolves #1065, resolves #1050
Showing
- src/db/models/attachment.rs 13 additions, 2 deletionssrc/db/models/attachment.rs
- src/db/models/cipher.rs 16 additions, 5 deletionssrc/db/models/cipher.rs
- src/db/models/collection.rs 40 additions, 9 deletionssrc/db/models/collection.rs
- src/db/models/folder.rs 22 additions, 8 deletionssrc/db/models/folder.rs
- src/db/models/org_policy.rs 14 additions, 3 deletionssrc/db/models/org_policy.rs
- src/db/models/organization.rs 32 additions, 9 deletionssrc/db/models/organization.rs
- src/db/models/two_factor.rs 15 additions, 4 deletionssrc/db/models/two_factor.rs
- src/db/models/user.rs 18 additions, 5 deletionssrc/db/models/user.rs
Loading
Please register or sign in to comment