Version: 2.3.0 (using KDE 4.7.2) OS: Linux DDL on SQLite: CREATE TRIGGER delete_tag DELETE ON Tags BEGIN DELETE FROM ImageTags WHERE tagid=OLD.id; DELETE FROM TagProperties WHERE tagid=OLD.id; DELETE FROM ImageTagProperties WHERE tagid=OLD.id; END; CREATE TRIGGER delete_tagstree DELETE ON Tags BEGIN DELETE FROM Tags WHERE id IN (SELECT id FROM TagsTree WHERE pid=OLD.id); DELETE FROM TagsTree WHERE id IN (SELECT id FROM TagsTree WHERE pid=OLD.id); DELETE FROM TagsTree WHERE id=OLD.id; END; This is not supported by MySQL Reproducible: Didn't try Steps to Reproduce: Install a new SQLite and export the DDL Actual Results: This possibly impairs the SQLite => MySQL migration Expected Results: Don't know - I upgraded from an older installation Merge the two triggers into one
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...
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