private function playQueries($executeQueries = false)
    {
        foreach ($this->migration->getQueries() as $idx => $query) {
            try {
                $this->runQuery($query, $executeQueries);
            } catch (\Exception $e) {
                // Only throw if more than one query is played
                if ($idx >= 1) {
                    throw new Exception($e->getMessage());
                }

                throw $e;
            }
        }
    }
private function playQueries($executeQueries = false)
    {
        foreach ($this->migration->getQueries() as $idx => $query) {
            try {
                $this->runQuery($query, $executeQueries);
            } catch (\Exception $e) {
                // Only throw if more than one query is played
                if ($idx >= 1) {
                    throw new Exception($e->getMessage());
                }

                throw $e;
            }
        }
    }
private function playQueries ( $ executeQueries = false ) { foreach ( $ this -> migration -> getQueries ( ) as $ idx => $ query ) { try { $ this -> runQuery ( $ query , $ executeQueries ) ; } catch ( \ Exception $ e ) { // Only throw if more than one query is played if ( $ idx >= 1 ) { throw new Exception ( $ e -> getMessage ( ) ) ; } throw $ e ; } } }
Play Script queries

@param bool $executeQueries
@throws Migration\Exception
@throws \Exception
@return void
Play Script queries