[digikam] [Bug 372312] database upgrade v7 to v8 failed

Kusi bugzilla_noreply at kde.org
Sun Nov 20 13:05:53 GMT 2016


https://bugs.kde.org/show_bug.cgi?id=372312

--- Comment #8 from Kusi <kusi at forum.titlis.org> ---
the new dbconfig.xml brings me quite a bit further, but no success yet.
Unfortunately, I've got a 10 years old sql db which probably degenerated a bit.
I need to resolve all foreign key violations (from which I have a bunch)
myself. Hopefully that doesn't happen anymore with the added constraints.
Thanks for that, btw!

As for your new xml: The following sequence cannot work, can it?

<statement mode="plain">
    ALTER TABLE Albums
    DROP FOREIGN KEY Albums_Images;
</statement>
<statement mode="plain">
    ALTER TABLE Albums
    ADD CONSTRAINT Albums_Images FOREIGN KEY (icon) REFERENCES Images (id) ON
DELETE SET NULL ON UPDATE CASCADE;
</statement>

You drop Albums_Images which didn't exist on a DK 4.14, right? At least for me,
I need DROP FOREIGN KEY IF EXISTS Albums_Images;

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Digikam-devel mailing list