public function copyDeltas($module = null)
    {
        $composer = $this->getComposer();

        $vendorDir = $composer->getConfig()->get('vendor-dir');

        $packages = $this->getLocalPackages();

        $deltas = [];

        foreach ($packages as $package) {
            $vendor = explode('/', $package->getName(), 2);

            if (empty($vendor) || static::VENDOR !== $vendor[0]) {
                continue;
            }

            $extra = $package->getExtra();

            if (!is_null($module) && !empty($module)) {
                if (isset($extra['module-name']) && trim($extra['module-name']) === trim($module)) {
                    $deltas = static::copyDeltasFromPackage($package, $vendorDir);
                    break;
                }
            } else {
                $deltas = array_merge(
                    $deltas,
                    static::copyDeltasFromPackage($package, $vendorDir)
                );
            }

        }

        return $deltas;

    }
public function copyDeltas($module = null)
    {
        $composer = $this->getComposer();

        $vendorDir = $composer->getConfig()->get('vendor-dir');

        $packages = $this->getLocalPackages();

        $deltas = [];

        foreach ($packages as $package) {
            $vendor = explode('/', $package->getName(), 2);

            if (empty($vendor) || static::VENDOR !== $vendor[0]) {
                continue;
            }

            $extra = $package->getExtra();

            if (!is_null($module) && !empty($module)) {
                if (isset($extra['module-name']) && trim($extra['module-name']) === trim($module)) {
                    $deltas = static::copyDeltasFromPackage($package, $vendorDir);
                    break;
                }
            } else {
                $deltas = array_merge(
                    $deltas,
                    static::copyDeltasFromPackage($package, $vendorDir)
                );
            }

        }

        return $deltas;

    }
public function copyDeltas ( $ module = null ) { $ composer = $ this -> getComposer ( ) ; $ vendorDir = $ composer -> getConfig ( ) -> get ( 'vendor-dir' ) ; $ packages = $ this -> getLocalPackages ( ) ; $ deltas = [ ] ; foreach ( $ packages as $ package ) { $ vendor = explode ( '/' , $ package -> getName ( ) , 2 ) ; if ( empty ( $ vendor ) || static :: VENDOR !== $ vendor [ 0 ] ) { continue ; } $ extra = $ package -> getExtra ( ) ; if ( ! is_null ( $ module ) && ! empty ( $ module ) ) { if ( isset ( $ extra [ 'module-name' ] ) && trim ( $ extra [ 'module-name' ] ) === trim ( $ module ) ) { $ deltas = static :: copyDeltasFromPackage ( $ package , $ vendorDir ) ; break ; } } else { $ deltas = array_merge ( $ deltas , static :: copyDeltasFromPackage ( $ package , $ vendorDir ) ) ; } } return $ deltas ; }
Find melis delta migration that match
condition of extra dbdeploy
Find melis delta migration that match condition of extra dbdeploy