Skip to content

Latest commit

 

History

History
55 lines (42 loc) · 1.52 KB

UPGRADE.rst

File metadata and controls

55 lines (42 loc) · 1.52 KB

Changelog

19.0.0 -> 20.0.0

  1. You need now to have composer.json in root directory.
  2. Task deploy:extend_log has been removed in favor of such same task build in in Deployer 7. File .dep/releases.extended with additional info can be removed.
  3. If you were modifying db_databases on host level with array_merge_recursive and in db_databases there were some closures then since Deployer 7 this will no longer work. You can get the same result when using db_databases_overwrite. You can also use db_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 .....
                            '
                    ]
                ]
        ]);