|
|
@ -30,11 +30,6 @@ class Database {
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
static patched = false;
|
|
|
|
static patched = false;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* For Backup only
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
static backupPath = null;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Add patch filename in key
|
|
|
|
* Add patch filename in key
|
|
|
|
* Values:
|
|
|
|
* Values:
|
|
|
@ -357,8 +352,6 @@ class Database {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
this.backup(dayjs().format("YYYYMMDDHHmmss"));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
log.info("db", sqlFilename + " is patching");
|
|
|
|
log.info("db", sqlFilename + " is patching");
|
|
|
|
this.patched = true;
|
|
|
|
this.patched = true;
|
|
|
|
await this.importSQLFile("./db/" + sqlFilename);
|
|
|
|
await this.importSQLFile("./db/" + sqlFilename);
|
|
|
|