Deployer 6 -> 7
- If you were modifying
db_databases
on host level witharray_merge_recursive
and indb_databases
there were some closures then since Deployer 7 this will no longer work. You can get the same result when usingdb_databases_overwrite
. You can also usedb_databases_overwrite_global
to overwrite with similar way on global level.
OLD
host('local')
->set('deploy_path', getcwd())
->set('db_databases', array_merge_recursive(get('db_databases'),
[
'database_default' =>
[
[
'post_sql_in' =>
'
UPDATE table .....
'
]
]
]));
NEW
host('local')
->set('deploy_path', getcwd())
->set('db_databases_overwrite',
[
'database_default' =>
[
[
'post_sql_in' =>
'
UPDATE table .....
'
]
]
]);