Skip to content

Commit 3761f0d

Browse files
SrcFluxtaylorotwell
authored andcommitted
Added PostgreSQL REAL data type (#18513)
* 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
1 parent 7cbfc1a commit 3761f0d

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,17 @@ protected function typeDouble(Fluent $column)
385385
return 'double precision';
386386
}
387387

388+
/**
389+
* Create the column definition for a real type.
390+
*
391+
* @param \Illuminate\Support\Fluent $column
392+
* @return string
393+
*/
394+
protected function typeReal(Fluent $column)
395+
{
396+
return 'real';
397+
}
398+
388399
/**
389400
* Create the column definition for a decimal type.
390401
*

0 commit comments

Comments
 (0)