Summary: | DB migration (SQLite -> MySQL) fails if images are in trash | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Simon Wüllhorst <mail> |
Component: | Database-Migration | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | metzpinguin |
Priority: | NOR | ||
Version First Reported In: | 5.9.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/digikam/cc40fc3f5ee0c52c1b3c1003377e5a13e61f8856 | Version Fixed In: | 6.0.0 |
Sentry Crash Report: |
Description
Simon Wüllhorst
2018-12-06 00:34:39 UTC
I can not reproduce the problem here with digiKam-6.0.0-beta3. But even with 5.9.0 the problem should not occur. We use "INSERT IGNORE" to insert the record, if the image id does not exist, the record is ignored. That should never fail. The fact that the images are "cleaning up" is an important part of the migration, so as not to take on any legacies. Which database do you use? MySQL or MariaDB? Which version? Maik I just see that the database migration is broken by a change (image => item) at the moment in the git/master version, i fix this today. Maik Hi Maik, you're totally right. Sorry for filing this issue too hasty. I'm using a MySQL 5.6 Server instance. However the patchlevel was before 5.6.30. So it was affected to this issue: https://bugs.mysql.com/bug.php?id=78853 This fully explains the unexpected behavior so this bug report can be closed. Sorry for that. Greetings, Simon Git commit cc40fc3f5ee0c52c1b3c1003377e5a13e61f8856 by Maik Qualmann. Committed on 06/12/2018 at 11:21. Pushed by mqualmann into branch 'master'. fix broken database migration in the git/master version FIXED-IN: 6.0.0 M +2 -1 NEWS M +4 -4 core/libs/database/coredb/coredbcopymanager.cpp https://commits.kde.org/digikam/cc40fc3f5ee0c52c1b3c1003377e5a13e61f8856 Thanks for the feedback. Good to know that this bug existed in MySQL. Just as a note, it's not official, but we only recommend and test with MariaDB. Maik |