LazyRecord\SqlBuilder\BaseBuilder::buildTable PHP Method

buildTable() public method

public buildTable ( LazyRecord\Schema\SchemaInterface $schema )
$schema LazyRecord\Schema\SchemaInterface
    public function buildTable(SchemaInterface $schema)
    {
        $sqls = array();
        if ($this->clean || $this->rebuild) {
            $sqls[] = $this->dropTable($schema);
        }
        if ($this->clean) {
            return $sqls;
        }
        $sqls[] = $this->createTable($schema);
        return $sqls;
    }