mirror of
https://github.com/strapi/strapi.git
synced 2025-11-11 07:39:16 +00:00
fix(cli): database name init
This commit is contained in:
parent
3855523557
commit
22f12ec0dc
@ -142,7 +142,7 @@ module.exports = (scope, cb) => {
|
|||||||
when: !hasDatabaseConfig,
|
when: !hasDatabaseConfig,
|
||||||
type: 'input',
|
type: 'input',
|
||||||
prefix: '',
|
prefix: '',
|
||||||
name: 'name',
|
name: 'database',
|
||||||
message: 'Database name:',
|
message: 'Database name:',
|
||||||
default: _.get(scope.database, 'database', 'strapi')
|
default: _.get(scope.database, 'database', 'strapi')
|
||||||
},
|
},
|
||||||
@ -201,7 +201,7 @@ module.exports = (scope, cb) => {
|
|||||||
|
|
||||||
scope.database.settings.host = answers.host;
|
scope.database.settings.host = answers.host;
|
||||||
scope.database.settings.port = answers.port;
|
scope.database.settings.port = answers.port;
|
||||||
scope.database.settings.database = answers.name;
|
scope.database.settings.database = answers.database;
|
||||||
scope.database.settings.username = answers.username;
|
scope.database.settings.username = answers.username;
|
||||||
scope.database.settings.password = answers.password;
|
scope.database.settings.password = answers.password;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user