make aggregate method public.
This commit is contained in:
@@ -629,7 +629,7 @@ class Query {
|
|||||||
* @param string $column
|
* @param string $column
|
||||||
* @return mixed
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
private function aggregate($aggregator, $column)
|
public function aggregate($aggregator, $column)
|
||||||
{
|
{
|
||||||
$this->aggregate = compact('aggregator', 'column');
|
$this->aggregate = compact('aggregator', 'column');
|
||||||
|
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class Schema {
|
|||||||
// For some extra syntax sugar, we'll check for any implicit
|
// For some extra syntax sugar, we'll check for any implicit
|
||||||
// indexes on the table. The developer may specify the index
|
// indexes on the table. The developer may specify the index
|
||||||
// type on the fluent column declaration. Here we'll find
|
// type on the fluent column declaration. Here we'll find
|
||||||
// any such implicit index and add the actual command.
|
// any implicit indexes and add the commands.
|
||||||
foreach ($table->columns as $column)
|
foreach ($table->columns as $column)
|
||||||
{
|
{
|
||||||
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
foreach (array('primary', 'unique', 'fulltext', 'index') as $key)
|
||||||
|
|||||||
Reference in New Issue
Block a user