Переход на JembaDb
This commit is contained in:
@@ -28,7 +28,7 @@ class JembaConnManager {
|
||||
this.config = config;
|
||||
this._db = {};
|
||||
|
||||
for (const dbConfig of this.config.db) {
|
||||
for (const dbConfig of this.config.jembaDb) {
|
||||
const dbPath = `${this.config.dataDir}/db/${dbConfig.dbName}`;
|
||||
|
||||
//бэкап
|
||||
@@ -90,7 +90,7 @@ class JembaConnManager {
|
||||
if (!this.inited)
|
||||
return;
|
||||
|
||||
for (const dbConfig of this.config.db) {
|
||||
for (const dbConfig of this.config.jembaDb) {
|
||||
await this._db[dbConfig.dbName].closeDb();
|
||||
}
|
||||
|
||||
|
||||
@@ -2,8 +2,7 @@ module.exports = {
|
||||
up: [
|
||||
//CREATE TABLE storage (id TEXT PRIMARY KEY, rev INTEGER, time INTEGER, data TEXT);
|
||||
['create', {
|
||||
table: 'storage',
|
||||
hash: {field: 'id', type: 'string', depth: 100}
|
||||
table: 'storage'
|
||||
}],
|
||||
],
|
||||
down: [
|
||||
|
||||
Reference in New Issue
Block a user