only migrate keys which don't already exist
This commit is contained in:
+11
-4
@@ -364,12 +364,19 @@ define([
|
|||||||
if (proxy && proxy.version === 1) { return; }
|
if (proxy && proxy.version === 1) { return; }
|
||||||
console.log("Configuring proxy schema...");
|
console.log("Configuring proxy schema...");
|
||||||
|
|
||||||
proxy.info = schema.info;
|
proxy.info = proxy.info || schema.info;
|
||||||
proxy.table = schema.table;
|
Object.keys(schema.info).forEach(function (k) {
|
||||||
|
if (!proxy.info[k]) { proxy.info[k] = schema.info[k]; }
|
||||||
|
});
|
||||||
|
|
||||||
|
proxy.table = proxy.table || schema.table;
|
||||||
|
Object.keys(schema.table).forEach(function (k) {
|
||||||
|
if (!proxy.table[k]) { proxy.table[k] = schema.table[k]; }
|
||||||
|
});
|
||||||
|
|
||||||
proxy.version = 1;
|
proxy.version = 1;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
||||||
*/
|
*/
|
||||||
@@ -645,7 +652,7 @@ define([
|
|||||||
suggestName: suggestName
|
suggestName: suggestName
|
||||||
},
|
},
|
||||||
ifrw: window,
|
ifrw: window,
|
||||||
common: Cryptpad
|
common: Cryptpad,
|
||||||
};
|
};
|
||||||
var toolbar = info.realtime.toolbar = Toolbar.create(APP.$bar, info.myID, info.realtime, info.getLag, userList, config);
|
var toolbar = info.realtime.toolbar = Toolbar.create(APP.$bar, info.myID, info.realtime, info.getLag, userList, config);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user