Skip to content

Commit

Permalink
conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 11, 2017
2 parents 4e8cd7e + c8fa0f9 commit f7189ad
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Eloquent/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function load($relations)
$relations = func_get_args();
}

$query = $this->first()->newQuery()->with($relations);
$query = $this->first()->newQueryWithoutRelationships()->with($relations);

$this->items = $query->eagerLoadRelations($this->items);
}
Expand Down
11 changes: 11 additions & 0 deletions Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,17 @@ public function softDeletesTz($precision = 0)
return $this->timestampTz('deleted_at', $precision)->nullable();
}

/**
* Create a new year column on the table.
*
* @param string $column
* @return \Illuminate\Support\Fluent
*/
public function year($column)
{
return $this->addColumn('year', $column);
}

/**
* Create a new binary column on the table.
*
Expand Down
11 changes: 11 additions & 0 deletions Schema/Grammars/MySqlGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,17 @@ protected function typeTimestampTz(Fluent $column)
return $this->typeTimestamp($column);
}

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

/**
* Create the column definition for a binary type.
*
Expand Down
11 changes: 11 additions & 0 deletions Schema/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -629,6 +629,17 @@ protected function typeTimestampTz(Fluent $column)
return $column->useCurrent ? "$columnType default CURRENT_TIMESTAMP" : $columnType;
}

/**
* Create the column definition for a year type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeYear(Fluent $column)
{
return $this->typeInteger($column);
}

/**
* Create the column definition for a binary type.
*
Expand Down
11 changes: 11 additions & 0 deletions Schema/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -618,6 +618,17 @@ protected function typeTimestampTz(Fluent $column)
return $this->typeTimestamp($column);
}

/**
* Create the column definition for a year type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeYear(Fluent $column)
{
return $this->typeInteger($column);
}

/**
* Create the column definition for a binary type.
*
Expand Down
11 changes: 11 additions & 0 deletions Schema/Grammars/SqlServerGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,17 @@ protected function typeTimestampTz(Fluent $column)
return "datetimeoffset($column->precision)";
}

/**
* Create the column definition for a year type.
*
* @param \Illuminate\Support\Fluent $column
* @return string
*/
protected function typeYear(Fluent $column)
{
return $this->typeInteger($column);
}

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

0 comments on commit f7189ad

Please sign in to comment.