修复数据库初始化的错误

This commit is contained in:
CN-JS-HuiBai
2026-04-11 17:53:11 +08:00
parent d8c33ca3ee
commit 18c81fb8bb
4 changed files with 10 additions and 7 deletions

View File

@@ -1,3 +1,5 @@
const path = require('path');
require('dotenv').config({ path: path.join(__dirname, '..', '.env') });
const mysql = require('mysql2/promise');
const checkAndFixDatabase = require('./db-schema-check');
const db = require('./db');