1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-12-02 22:49:09 +02:00

Desktop, Mobile: Improved config screen with dark theme

This commit is contained in:
Laurent Cozic
2019-05-26 19:39:07 +01:00
parent 7b987b5a8f
commit 83682ab513
5 changed files with 79 additions and 50 deletions

View File

@@ -410,32 +410,7 @@ async function initialize(dispatch) {
} else {
await db.open({ name: 'joplin-68.sqlite' });
const tableNames = [
'notes',
'folders',
'resources',
'tags',
'note_tags',
// 'master_keys',
'item_changes',
'note_resources',
// 'settings',
'deleted_items',
'sync_items',
'notes_normalized',
'revisions',
'resources_to_download',
];
const queries = [];
for (const n of tableNames) {
queries.push('DELETE FROM ' + n);
queries.push('DELETE FROM sqlite_sequence WHERE name="' + n + '"'); // Reset autoincremented IDs
}
queries.push('DELETE FROM settings WHERE key="sync.7.context"');
// await db.transactionExecBatch(queries);
// await db.clearForTesting();
}
reg.logger().info('Database is ready.');