Summary: | MIGRATION : two SQLITE triggers applied for the same table is not supported by MySQL database | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Ignatius Reilly <ignatius.reilly> |
Component: | Database-Migration | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles, mattia.verga, metzpinguin, swatilodha27, vivo75+kde |
Priority: | NOR | ||
Version: | 2.3.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/digikam/9a17c743ea9a41c1ef050b08517343813ef6a9f4 | Version Fixed In: | 5.8.0 |
Sentry Crash Report: |
Description
Ignatius Reilly
2011-11-13 14:38:27 UTC
Actually mysql has only one trigger on `tags` (well it's present two times but it's the same). Sqlite version of the sql is indeed affected, I don't know how it will react to this. ignitus.reily for your interest mysql code start at <database name="QMYSQL"> tag in dbconfig.xml Swati, What about this file ? It still valid ? If yes, the schema must be patched to fix this problem. Gilles Caulier I don't know if I hit the same problem, but I get an error trying to migrate SQLite to an external MySQL database (no details are showed). So, yes, I think this file is still valid. Additionally, I can't even set up a new empty database, I think for the same problem. Creation and migration both errors out in the middle of the task. Using Digikam 5.0.0 and MariaDB 5.5.44 To setup a Mariadb/Mysql database on a remote server, you must follow the requirements listed in DK/Setup/Database tab. It's very important. Following this rules, i can setup a DB in a Linux host computer and use it in digiKam client from Linux, OSX, or Windows. The migration is another subject, but it depend of a correct remote DB init. Gilles Caulier (In reply to caulier.gilles from comment #5) > To setup a Mariadb/Mysql database on a remote server, you must follow the > requirements listed in DK/Setup/Database tab. It's very important. > > Following this rules, i can setup a DB in a Linux host computer and use it > in digiKam client from Linux, OSX, or Windows. > > The migration is another subject, but it depend of a correct remote DB init. > > Gilles Caulier I tried with another server running MariaDB 10.1.14 and it's working. I think MariaDB 5.5.44 running on my Qnap NAS it's just too old... Swati, What about this file ? It still valid ? If yes, the schema must be patched to fix this problem. Gilles Caulier Git commit 9a17c743ea9a41c1ef050b08517343813ef6a9f4 by Maik Qualmann. Committed on 25/11/2017 at 22:02. Pushed by mqualmann into branch 'master'. update DB to v9 and fix migration from SQLite to MySQL Related: bug 378838, bug 369083, bug 350574 FIXED-IN: 5.8.0 M +5 -1 NEWS M +129 -97 data/database/dbconfig.xml.cmake.in M +1 -1 data/database/mysql-global.conf M +1 -20 libs/database/coredb/coredbcopymanager.cpp M +5 -2 libs/database/coredb/coredbschemaupdater.cpp https://commits.kde.org/digikam/9a17c743ea9a41c1ef050b08517343813ef6a9f4 |