src/Migrator.php
public function runMigration($file)
    {
        $migration = $this->getMigrationObjectByFileName($file);

        $this->disableBitrixIblockHelperCache();

        $this->checkTransactionAndRun($migration, function () use ($migration, $file) {
            if ($migration->up() === false) {
                throw new Exception("Migration up from {$file}.php returned false");
            }
        });

        $this->logSuccessfulMigration($file);
    }
public function runMigration($file)
    {
        $migration = $this->getMigrationObjectByFileName($file);

        $this->disableBitrixIblockHelperCache();

        $this->checkTransactionAndRun($migration, function () use ($migration, $file) {
            if ($migration->up() === false) {
                throw new Exception("Migration up from {$file}.php returned false");
            }
        });

        $this->logSuccessfulMigration($file);
    }
public function runMigration ( $ file ) { $ migration = $ this -> getMigrationObjectByFileName ( $ file ) ; $ this -> disableBitrixIblockHelperCache ( ) ; $ this -> checkTransactionAndRun ( $ migration , function ( ) use ( $ migration , $ file ) { if ( $ migration -> up ( ) === false ) { throw new Exception ( "Migration up from {$file}.php returned false" ) ; } } ) ; $ this -> logSuccessfulMigration ( $ file ) ; }
Run a given migration.

@param string $file

@throws Exception

@return string
Run a given migration .