protected function runMigration(array $file)
    {
        $this->repository->transaction(function (SqlMigrationRepository $repo) use ($file) {
            $contents = (string) $this->filesystem->read($file['path']);
            $repo->execute($contents);
        });
    }
protected function runMigration(array $file)
    {
        $this->repository->transaction(function (SqlMigrationRepository $repo) use ($file) {
            $contents = (string) $this->filesystem->read($file['path']);
            $repo->execute($contents);
        });
    }
protected function runMigration ( array $ file ) { $ this -> repository -> transaction ( function ( SqlMigrationRepository $ repo ) use ( $ file ) { $ contents = ( string ) $ this -> filesystem -> read ( $ file [ 'path' ] ) ; $ repo -> execute ( $ contents ) ; } ) ; }
Run a migration inside a transaction if the database supports it.

@param array $file
@return void
Run a migration inside a transaction if the database supports it .