mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
All use SHA384/RSA3072 mesh agents
This commit is contained in:
parent
ace4046415
commit
c848956aa4
18 changed files with 284 additions and 10 deletions
2
db.js
2
db.js
|
@ -52,8 +52,10 @@ module.exports.CreateDB = function (args, datapath) {
|
|||
obj.Get('SchemaVersion', function (err, docs) {
|
||||
var ver = 0;
|
||||
if (docs && docs.length == 1) { ver = docs[0].value; }
|
||||
if (ver == 1) { console.log('This is an unsupported beta 1 database, delete it to create a new one.'); process.exit(0); }
|
||||
|
||||
// TODO: Any schema upgrades here...
|
||||
obj.Set({ _id: 'SchemaVersion', value: 2 });
|
||||
|
||||
func(ver);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue