public function applySchema(bool $strict = false): array
    {
        $sqlStatements = $this->getMigrationSql();
        foreach ($sqlStatements as $sqlStatement) {
            $this->connection->exec($sqlStatement);
        }
        if ($strict) {
            $reorderSql = $this->reorderSql();
            $sqlStatements = array_merge($sqlStatements, $reorderSql);
            foreach ($reorderSql as $sqlStatement) {
                $this->connection->exec($sqlStatement);
            }
        }
        return $sqlStatements;
    }
public function applySchema(bool $strict = false): array
    {
        $sqlStatements = $this->getMigrationSql();
        foreach ($sqlStatements as $sqlStatement) {
            $this->connection->exec($sqlStatement);
        }
        if ($strict) {
            $reorderSql = $this->reorderSql();
            $sqlStatements = array_merge($sqlStatements, $reorderSql);
            foreach ($reorderSql as $sqlStatement) {
                $this->connection->exec($sqlStatement);
            }
        }
        return $sqlStatements;
    }
public function applySchema ( bool $ strict = false ) : array { $ sqlStatements = $ this -> getMigrationSql ( ) ; foreach ( $ sqlStatements as $ sqlStatement ) { $ this -> connection -> exec ( $ sqlStatement ) ; } if ( $ strict ) { $ reorderSql = $ this -> reorderSql ( ) ; $ sqlStatements = array_merge ( $ sqlStatements , $ reorderSql ) ; foreach ( $ reorderSql as $ sqlStatement ) { $ this -> connection -> exec ( $ sqlStatement ) ; } } return $ sqlStatements ; }
Alter schema in database, according to config file.
@return int
Alter schema in database according to config file .