fix(create-nocobase-app): support mariadb dialect (#3466)
This commit is contained in:
parent
bdaa2197a7
commit
7247c94763
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user