Charm icon indicating copy to clipboard operation
Charm copied to clipboard

1.12 moves database location

Open adriaandegroot opened this issue 7 years ago • 3 comments

In 1.11, the database (on a FreeBSD system, anyway) lived at .local/share/data/KDAB/Charm/Charm.db, but now at .local/share/KDAB/Charm/Charm_debug.db. This leads to something that looks like data loss (because on starting the upgraded Charm, it doesn't find the database and so starts anew).

adriaandegroot avatar Sep 01 '18 18:09 adriaandegroot

(I should add that this. and #334, assume that Charm is intended as a product for third-party consumption)

adriaandegroot avatar Sep 01 '18 18:09 adriaandegroot

Hm the debug suffix should only be set in full debug builds, meant for developing. The suffix should prevent data loss by not working on your production db when testing new features.

TheOneRing avatar Sep 02 '18 11:09 TheOneRing

I see. Previous version didn't do that when built normally -- and FreeBSD packaging tends to leave the build type unspecified. I'll add the build type and see what happens.

adriaandegroot avatar Sep 03 '18 07:09 adriaandegroot