Skip to content

Commit

Permalink
Added PostgreSQL REAL data type (#18513)
Browse files Browse the repository at this point in the history
* Added PostgreSQL REAL data type

Adds support for PostgresSQL's REAL data type.

That way you can have real columns in your schema:

```php
$table->addColumn('real', $column)
```

* Update PostgresGrammar.php
  • Loading branch information
SrcFlux authored and taylorotwell committed Mar 27, 2017
1 parent 7cbfc1a commit 3761f0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,17 @@ protected function typeDouble(Fluent $column)
return 'double precision';
}

/**
* Create the column definition for a real type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeReal(Fluent $column)
{
return 'real';
}

/**
* Create the column definition for a decimal type.
*
Expand Down

0 comments on commit 3761f0d

Please sign in to comment.