mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-09 21:49:43 -05:00
All use SHA384/RSA3072 mesh agents
This commit is contained in:
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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user