Summary: | kde-apps/akonadi: Switch default database backend (from QMYSQL) to QSQLITE (IUSE => "mysql +sqlite") | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Andreas Sturmlechner <asturm> |
Component: | Current packages | Assignee: | Gentoo KDE team <kde> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | arsen, gentoo, josef64, sam, soap |
Priority: | Normal | Keywords: | PullRequest |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: |
https://bugs.gentoo.org/show_bug.cgi?id=441596 https://github.com/gentoo/kde/pull/1007 https://bugs.kde.org/show_bug.cgi?id=451620 https://bugs.kde.org/show_bug.cgi?id=495675 |
||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 681658 | ||
Bug Blocks: | 935416 |
Description
Andreas Sturmlechner
![]() Migration on my newly upgraded old laptop worked rather simple, and fine, coming from postgresql:13.
> $ akonadi-db-migrator --newengine sqlite
> Stopping Akonadi service...
> org.kde.pim.akonadiserver: Running DB initializer
> org.kde.pim.akonadiserver: DB initializer done
> org.kde.pim.akonadiserver: Running DB initializer
> org.kde.pim.akonadiserver: DB initializer done
> Running fsck on the source database
> Database fsck completed
> Migrating table SchemaVersionTable (1/19)...
> 100%...
> Optimizing table SchemaVersionTable...
> Migrating table ResourceTable (2/19)...
> 50%...
> 100%...
> Optimizing table ResourceTable...
> Migrating table CollectionTable (3/19)...
> 50%...
> 100%...
> Optimizing table CollectionTable...
> Migrating table MimeTypeTable (4/19)...
> 30%...
> 100%...
> Optimizing table MimeTypeTable...
> Migrating table PimItemTable (5/19)...
> 0%...
> 10%...
> 20%...
> 30%...
> 40%...
> 50%...
> 60%...
> 70%...
> 80%...
> 90%...
> 100%...
> Optimizing table PimItemTable...
> Migrating table FlagTable (6/19)...
> 50%...
> 100%...
> Optimizing table FlagTable...
> Migrating table PartTypeTable (7/19)...
> 10%...
> 20%...
> 30%...
> 40%...
> 50%...
> 60%...
> 70%...
> 80%...
> 90%...
> 100%...
> Optimizing table PartTypeTable...
> Migrating table PartTable (8/19)...
> 0%...
> 10%...
> 20%...
> 30%...
> 40%...
> 50%...
> 60%...
> 70%...
> 80%...
> 90%...
> 100%...
> Optimizing table PartTable...
> Migrating table CollectionAttributeTable (9/19)...
> 30%...
> 50%...
> 80%...
> 100%...
> Optimizing table CollectionAttributeTable...
> Migrating table TagTypeTable (10/19)...
> 100%...
> Optimizing table TagTypeTable...
> Migrating table TagTable (11/19)...
> Optimizing table TagTable...
> Migrating table TagAttributeTable (12/19)...
> Optimizing table TagAttributeTable...
> Migrating table TagRemoteIdResourceRelationTable (13/19)...
> Optimizing table TagRemoteIdResourceRelationTable...
> Migrating table RelationTypeTable (14/19)...
> 100%...
> Optimizing table RelationTypeTable...
> Migrating table RelationTable (15/19)...
> Optimizing table RelationTable...
> Migrating table PimItemFlagRelation (16/19)...
> 0%...
> 10%...
> 20%...
> 30%...
> 40%...
> 50%...
> 60%...
> 70%...
> 80%...
> 90%...
> 100%...
> Optimizing table PimItemFlagRelation...
> Migrating table PimItemTagRelation (17/19)...
> Optimizing table PimItemTagRelation...
> Migrating table CollectionMimeTypeRelation (18/19)...
> 20%...
> 50%...
> 70%...
> 100%...
> Optimizing table CollectionMimeTypeRelation...
> Migrating table CollectionPimItemRelation (19/19)...
> Optimizing table CollectionPimItemRelation...
> waiting for server to shut down.... done
> server stopped
> Backing up original database...
> Starting Akonadi service...
> Migration completed successfully.
After that, I found ~/.config/akonadi/akonadiserverrc to have been switched Driver=QSQLITE by the tool as well, together with an added [QSQLITE] section pointing to the resulting akonadi.db.
So it seems like any migration guide will be rather short.
(In reply to Andreas Sturmlechner from comment #1) > After that, I found ~/.config/akonadi/akonadiserverrc to have been switched > Driver=QSQLITE by the tool as well, together with an added [QSQLITE] section > pointing to the resulting akonadi.db. ... with a copy of the orig file named akonadiserverrc.bkp in the same dir. |