mirror of
https://github.com/strapi/strapi.git
synced 2025-11-01 02:16:03 +00:00
Update branch
Merge branch 'plugin/settings-manager-dev' of https://github.com/strapi/strapi into plugin/settings-manager-dev
This commit is contained in:
commit
c83e68141a
@ -217,6 +217,13 @@ module.exports = {
|
||||
params = { database: { connections }};
|
||||
|
||||
items = [{ target: 'database.connections' }];
|
||||
|
||||
if (strapi.config.environments[env].database.defaultConnection === name) {
|
||||
params.database.defaultConnection = newName;
|
||||
items.push({
|
||||
target: 'database.defaultConnection'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
const newClient = _.get(params, `database.connections.${name}.settings.client`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user