note history

This commit is contained in:
life
2015-02-21 22:24:58 +08:00
parent a59c2fcadd
commit 4adb336b93
3 changed files with 77 additions and 21 deletions

2
node_modules/db.js generated vendored
View File

@@ -5,7 +5,7 @@ var path = require('path');
// var dbPath = require('nw.gui').App.dataPath + '/nedb'
var dbPath = '/Users/life/Library/Application Support/Leanote' + '/nedb';
var db = {};
var dbNames = ['notebooks', 'notes', 'users', 'tags', 'images', 'attachs'];
var dbNames = ['notebooks', 'notes', 'users', 'tags', 'images', 'attachs', 'noteHistories'];
for(var i in dbNames) {
var name = dbNames[i];
db[name] = new Datastore({ filename: path.join(dbPath, name + '.db'), autoload: true });