mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-07-02 11:12:20 +08:00
chore: database prepare error message
This commit is contained in:
parent
3851d49469
commit
b576670826
@ -850,11 +850,9 @@ export class Database extends EventEmitter implements AsyncEmitter {
|
|||||||
const result = await this.sequelize.query(`SHOW VARIABLES LIKE 'lower_case_table_names'`, { plain: true });
|
const result = await this.sequelize.query(`SHOW VARIABLES LIKE 'lower_case_table_names'`, { plain: true });
|
||||||
|
|
||||||
if (result?.Value === '1' && !this.options.underscored) {
|
if (result?.Value === '1' && !this.options.underscored) {
|
||||||
console.log(
|
throw new Error(
|
||||||
`Your database lower_case_table_names=1, please add ${chalk.yellow('DB_UNDERSCORED=true')} to the .env file`,
|
`Your database lower_case_table_names=1, please add ${chalk.yellow('DB_UNDERSCORED=true')} to the .env file`,
|
||||||
);
|
);
|
||||||
|
|
||||||
process.exit();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user