fix: mysql in docker (#216)
* fix(database): Implement dynamic database connector selection * refactor: Convert database detection messages to English * chore: add mysql2 dependency * Update docker-compose.yml --------- Co-authored-by: Ou <[email protected]>
This commit is contained in:
@@ -11,10 +11,10 @@ function isMySQLDatabase(): boolean {
|
||||
process.env.MYSQL_DATABASE
|
||||
|
||||
if (hasMySQLConfig) {
|
||||
console.log('🔍 检测到 MySQL 配置,使用 MySQL 数据库')
|
||||
console.log('🔗 Using MySQL database')
|
||||
return true
|
||||
} else {
|
||||
console.log('🔍 未检测到 MySQL 配置,使用 SQLite 数据库')
|
||||
console.log('🗃️ Using SQLite database')
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user