mirror of
https://github.com/strapi/strapi.git
synced 2025-08-14 11:48:43 +00:00
Merge pull request #591 from strapi/fix/mariadb
Remove user key from generated databases.json file
This commit is contained in:
commit
e87ed71c07
@ -10,7 +10,7 @@ const logger = require('strapi-utils').logger;
|
|||||||
module.exports = (scope, success, error) => {
|
module.exports = (scope, success, error) => {
|
||||||
const knex = require(path.resolve(`${scope.rootPath}/node_modules/knex`))({
|
const knex = require(path.resolve(`${scope.rootPath}/node_modules/knex`))({
|
||||||
client: scope.client.module,
|
client: scope.client.module,
|
||||||
connection: Object.assign(scope.database.settings, {
|
connection: Object.assign({}, scope.database.settings, {
|
||||||
user: scope.database.settings.username
|
user: scope.database.settings.username
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user