<table><tr><td style="">ivan added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D10691" rel="noreferrer">View Revision</a></tr></table><br /><div><div><p>The fix needs to be a bit more complex. We can not really rely on the user to fix the database.</p>

<p>The current plan is to have kamd backup the important parts of the database from time to time, and to recreate the database when needed.</p>

<p>I'll see whether I can roll out a crash=>fail-with-a-message patch for the LTS.</p>

<p>The current implementation relied on my (wrong) assumption that sqlite is very stable and that it can not go berserk and corrupt the database. :)</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R159 KActivities Statistics</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D10691" rel="noreferrer">https://phabricator.kde.org/D10691</a></div></div><br /><div><strong>To: </strong>kpiwowarski, Plasma, Frameworks, hein, ivan<br /><strong>Cc: </strong>ivan, plasma-devel, Frameworks, michaelh, ZrenBot, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart<br /></div>