alsmanager_lib 1.0.71 → 1.0.74
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/modules.js +5 -4
- package/package.json +1 -1
package/lib/modules.js
CHANGED
|
@@ -7898,14 +7898,15 @@ function exportDBSQLSQLite(db_path, dump_path, dump_filename) {
|
|
|
7898
7898
|
var path = require('path');
|
|
7899
7899
|
if (!dump_filename) {
|
|
7900
7900
|
var d = new Date();
|
|
7901
|
-
datestring = d.getFullYear() + ("0"
|
|
7901
|
+
datestring = d.getFullYear() + ("0"+(d.getMonth()+1)).slice(-2) + ("0" + d.getDate()).slice(-2) +
|
|
7902
7902
|
"_" + ("0" + d.getHours()).slice(-2) + ("0" + d.getMinutes()).slice(-2) + ("0" + d.getSeconds()).slice(-2);
|
|
7903
|
-
fileName = "ALSnr_" +
|
|
7903
|
+
fileName = "ALSnr_" + datestring + ".sql";
|
|
7904
7904
|
}
|
|
7905
7905
|
else {
|
|
7906
7906
|
fileName = dump_filename;
|
|
7907
7907
|
}
|
|
7908
7908
|
|
|
7909
|
+
|
|
7909
7910
|
var fileOut = path.join(dump_path, fileName);
|
|
7910
7911
|
|
|
7911
7912
|
let cmd = "sqlite3 " + db_path + " ";
|
|
@@ -7933,10 +7934,10 @@ function exportDBSQL(db_used, db_path, dump_path, dump_filename) {
|
|
|
7933
7934
|
if (db_used) {
|
|
7934
7935
|
switch (db_used) {
|
|
7935
7936
|
case 'SQLITE':
|
|
7936
|
-
query = exportDBSQLSQLite(db_path,
|
|
7937
|
+
query = exportDBSQLSQLite(db_path, dump_path, dump_filename);
|
|
7937
7938
|
break;
|
|
7938
7939
|
case 'MYSQL':
|
|
7939
|
-
query = exportDBSQLMySQL(db_path,
|
|
7940
|
+
query = exportDBSQLMySQL(db_path, dump_path, dump_filename);
|
|
7940
7941
|
break;
|
|
7941
7942
|
}
|
|
7942
7943
|
}
|