MigrationVersion::_enumerateMigrations PHP Method

_enumerateMigrations() protected method

Returns a map of all available migrations for a type (app or plugin)
protected _enumerateMigrations ( string $type ) : array
$type string Can be 'app' or a plugin name
return array containing a list of migration versions ordered by filename
    protected function _enumerateMigrations($type)
    {
        $map = $this->_enumerateNewMigrations($type);
        $oldMap = $this->_enumerateOldMigrations($type);
        foreach ($oldMap as $k => $v) {
            $map[$k] = $oldMap[$k];
        }
        return $map;
    }