src/Services/Migrator.php
private function loadPerformedMigrations($batch)
    {
        $migrations = [];

        $pluginMigrations = $this->pluginMigrations();

        /** @noinspection SqlDialectInspection */
        $rows = $this->db->table('_migrations')->select('name')->whereCondition('batch = ?', [$batch])->all();
        foreach ($rows as $row) {
            $name = $row['name'];
            $migrations[$name] = isset($pluginMigrations[$name]) ? $pluginMigrations[$name] : $this->migrationPath . DIRECTORY_SEPARATOR . $name . '.php';
        }

        return $migrations;
    }
private function loadPerformedMigrations($batch)
    {
        $migrations = [];

        $pluginMigrations = $this->pluginMigrations();

        /** @noinspection SqlDialectInspection */
        $rows = $this->db->table('_migrations')->select('name')->whereCondition('batch = ?', [$batch])->all();
        foreach ($rows as $row) {
            $name = $row['name'];
            $migrations[$name] = isset($pluginMigrations[$name]) ? $pluginMigrations[$name] : $this->migrationPath . DIRECTORY_SEPARATOR . $name . '.php';
        }

        return $migrations;
    }
private function loadPerformedMigrations ( $ batch ) { $ migrations = [ ] ; $ pluginMigrations = $ this -> pluginMigrations ( ) ; /** @noinspection SqlDialectInspection */ $ rows = $ this -> db -> table ( '_migrations' ) -> select ( 'name' ) -> whereCondition ( 'batch = ?' , [ $ batch ] ) -> all ( ) ; foreach ( $ rows as $ row ) { $ name = $ row [ 'name' ] ; $ migrations [ $ name ] = isset ( $ pluginMigrations [ $ name ] ) ? $ pluginMigrations [ $ name ] : $ this -> migrationPath . DIRECTORY_SEPARATOR . $ name . '.php' ; } return $ migrations ; }
Load the migrations already performed by batch number

@param int $batch
@return array
Load the migrations already performed by batch number