Permalink
Browse files

formatting

  • Loading branch information...
taylorotwell committed Jan 30, 2019
1 parent 04ebdb3 commit 1c74d7fe595df223279de55dffc7ae6fc8ac9ca6
@@ -822,18 +822,6 @@ public function unsignedDecimal($column, $total = 8, $places = 2)
]);
}
/**
* Create a new generated computed column on the table.
*
* @param string $column
* @param string $expression
* @return \Illuminate\Database\Schema\ColumnDefinition
*/
public function computed($column, $expression)
{
return $this->addColumn('computed', $column, compact('expression'));
}
/**
* Create a new boolean column on the table.
*
@@ -1169,6 +1157,18 @@ public function multiPolygon($column)
return $this->addColumn('multipolygon', $column);
}
/**
* Create a new generated, computed column on the table.
*
* @param string $column
* @param string $expression
* @return \Illuminate\Database\Schema\ColumnDefinition
*/
public function computed($column, $expression)
{
return $this->addColumn('computed', $column, compact('expression'));
}
/**
* Add the proper columns for a polymorphic table.
*
@@ -128,6 +128,19 @@ protected function getType(Fluent $column)
return $this->{'type'.ucfirst($column->type)}($column);
}
/**
* Create the column definition for a generated, computed column type.
*
* @param \Illuminate\Support\Fluent $column
* @return void
*
* @throws \RuntimeException
*/
protected function typeComputed(Fluent $column)
{
throw new RuntimeException('This database driver does not support the computed type.');
}
/**
* Add the column modifiers to the definition.
*
@@ -191,18 +204,6 @@ public function prefixArray($prefix, array $values)
}, $values);
}
/**
* Create the column definition for a generated computed column type.
*
* @param \Illuminate\Support\Fluent $column
*
* @throws \RuntimeException
*/
protected function typeComputed(Fluent $column)
{
throw new RuntimeException('The database driver in use does not support the computed type.');
}
/**
* Wrap a table in keyword identifiers.
*
@@ -835,15 +835,16 @@ public function typeMultiPolygon(Fluent $column)
}
/**
* Create the column definition for a generated computed column type.
* Create the column definition for a generated, computed column type.
*
* @param \Illuminate\Support\Fluent $column
* @return void
*
* @throws \RuntimeException
*/
protected function typeComputed(Fluent $column)
{
throw new RuntimeException('The database driver in use requires a type, see virtualAs/storedAs modifiers.');
throw new RuntimeException('This database driver requires a type, see the virtualAs / storedAs modifiers.');
}
/**
@@ -734,7 +734,7 @@ public function typeMultiPolygon(Fluent $column)
}
/**
* Create the column definition for a generated computed column type.
* Create the column definition for a generated, computed column type.
*
* @param \Illuminate\Support\Fluent $column
* @return string|null

0 comments on commit 1c74d7f

Please sign in to comment.