1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00
This commit is contained in:
Laurent Cozic 2017-07-10 21:48:17 +01:00
parent e882c7b339
commit 729235bf3c
2 changed files with 7 additions and 9 deletions

View File

@ -1,4 +1,5 @@
import { Note } from 'lib/models/note.js'
import { Log } from 'lib/log.js'
class NotesScreenUtils {

View File

@ -65,9 +65,6 @@ const reducer = (state = defaultState, action) => {
action = navHistory.pop(); // Current page
action = navHistory.pop(); // Previous page
// newState = Object.assign({}, state);
// newState.historyCanGoBack = false;
// Fall throught
case 'Navigation/NAVIGATE':
@ -263,12 +260,12 @@ async function initialize(dispatch) {
} else {
await db.open({ name: 'joplin-53.sqlite' })
await db.exec('DELETE FROM notes');
await db.exec('DELETE FROM folders');
await db.exec('DELETE FROM tags');
await db.exec('DELETE FROM note_tags');
await db.exec('DELETE FROM resources');
await db.exec('DELETE FROM deleted_items');
// await db.exec('DELETE FROM notes');
// await db.exec('DELETE FROM folders');
// await db.exec('DELETE FROM tags');
// await db.exec('DELETE FROM note_tags');
// await db.exec('DELETE FROM resources');
// await db.exec('DELETE FROM deleted_items');
}
reg.logger().info('Database is ready.');