src/core/framework/core/3rdparty/ezcomponents/DatabaseSchema/src/handlers/common_sql_writer.php
protected function generateSchemaAsSql()
    {
        $prefix = ezcDbSchema::$options->tableNamePrefix;
        foreach ( $this->schema as $tableName => $tableDefinition )
        {
            $this->generateDropTableSql( $prefix . $tableName );
            $this->generateCreateTableSql( $prefix . $tableName, $tableDefinition );
        }
    }
protected function generateSchemaAsSql()
    {
        $prefix = ezcDbSchema::$options->tableNamePrefix;
        foreach ( $this->schema as $tableName => $tableDefinition )
        {
            $this->generateDropTableSql( $prefix . $tableName );
            $this->generateCreateTableSql( $prefix . $tableName, $tableDefinition );
        }
    }
protected function generateSchemaAsSql ( ) { $ prefix = ezcDbSchema :: $ options -> tableNamePrefix ; foreach ( $ this -> schema as $ tableName => $ tableDefinition ) { $ this -> generateDropTableSql ( $ prefix . $ tableName ) ; $ this -> generateCreateTableSql ( $ prefix . $ tableName , $ tableDefinition ) ; } }
Creates SQL DDL statements from a schema definitin.

Loops over the tables in the schema definition in $this->schema and
creates SQL SSL statements for this which it stores internally into the
$this->queries array.
Creates SQL DDL statements from a schema definitin .