src/Builder/StructureSql.php
public function appendToStructureSql($statement, $comment = '')
    {
        if ($structure_sql_path = $this->getStructureSqlPath()) {
            $current_content = file_get_contents($structure_sql_path);

            if ($current_content) {
                $current_content .= "\n\n\n\n";
            }

            if ($comment) {
                $current_content .= "# $comment\n";
            }

            file_put_contents($structure_sql_path, $current_content . $statement);
        }
    }
public function appendToStructureSql($statement, $comment = '')
    {
        if ($structure_sql_path = $this->getStructureSqlPath()) {
            $current_content = file_get_contents($structure_sql_path);

            if ($current_content) {
                $current_content .= "\n\n\n\n";
            }

            if ($comment) {
                $current_content .= "# $comment\n";
            }

            file_put_contents($structure_sql_path, $current_content . $statement);
        }
    }
public function appendToStructureSql ( $ statement , $ comment = '' ) { if ( $ structure_sql_path = $ this -> getStructureSqlPath ( ) ) { $ current_content = file_get_contents ( $ structure_sql_path ) ; if ( $ current_content ) { $ current_content .= "\n\n\n\n" ; } if ( $ comment ) { $ current_content .= "# $comment\n" ; } file_put_contents ( $ structure_sql_path , $ current_content . $ statement ) ; } }
Append statement to SQL file.

@param string $statement
@param string $comment
Append statement to SQL file .