fix(create-nocobase-app): support mariadb dialect (#3466)

This commit is contained in:
chenos 2024-01-30 17:10:16 +08:00
parent bdaa2197a7
commit 7247c94763

View File

@ -51,7 +51,7 @@ class AppGenerator extends Generator {
checkDialect() { checkDialect() {
const dialect = this.args.dbDialect; const dialect = this.args.dbDialect;
const supportDialects = ['mysql', 'sqlite', 'postgres']; const supportDialects = ['mysql', 'mariadb', 'sqlite', 'postgres'];
if (!supportDialects.includes(dialect)) { if (!supportDialects.includes(dialect)) {
console.log( console.log(
`dialect ${chalk.red(dialect)} is not supported, currently supported dialects are ${chalk.green( `dialect ${chalk.red(dialect)} is not supported, currently supported dialects are ${chalk.green(