Skip to content

Commit

Permalink
indent
Browse files Browse the repository at this point in the history
  • Loading branch information
c9s committed Feb 12, 2012
1 parent eb77018 commit bca2b11
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Lazy/SchemaSqlBuilder/SqliteDriver.php
Expand Up @@ -29,13 +29,13 @@ function buildColumnSql($schema, $column) {
/**
* if it's callable, we should not write the result into sql schema
*/
if( null !== ($default = $column->default) && ! is_callable($column->default ) ) {

// raw sql default value
if( null !== ($default = $column->default)
&& ! is_callable($column->default ) )
{
// for raw sql default value
if( is_array($default) ) {
$sql .= ' default ' . $default[0];
}
else {
} else {
$sql .= ' default ' . $this->driver->inflate($default);
}
}
Expand Down

0 comments on commit bca2b11

Please sign in to comment.