添加db_migrate功能

This commit is contained in:
CN-JS-HuiBai
2026-04-22 21:24:43 +08:00
parent ce739d1232
commit 1430ecf366
4 changed files with 9 additions and 8 deletions

View File

@@ -204,7 +204,7 @@ async function ensureTable(tableName, tableSchema) {
}
}
async function checkAndFixDatabase() {
async function db_migrate() {
console.log('[Database Integrity] Starting comprehensive database audit...');
// Try to check if we can even connect
@@ -233,4 +233,4 @@ async function checkAndFixDatabase() {
}
}
module.exports = checkAndFixDatabase;
module.exports = db_migrate;