Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Dec 11, 2017
1 parent f911b8d commit ba8e205
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 55 deletions.
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -783,17 +783,6 @@ public function dateTime($column, $precision = 0)
return $this->addColumn('dateTime', $column, compact('precision'));
}

/**
* 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 date-time column (with time zone) on the table.
*
Expand Down Expand Up @@ -916,6 +905,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
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Schema/Grammars/MySqlGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -585,17 +585,6 @@ protected function typeDate(Fluent $column)
return 'date';
}

/**
* 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 date-time type.
*
Expand Down Expand Up @@ -664,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
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Schema/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -536,17 +536,6 @@ protected function typeDate(Fluent $column)
return 'date';
}

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

/**
* Create the column definition for a date-time type.
*
Expand Down Expand Up @@ -617,6 +606,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
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Schema/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -545,17 +545,6 @@ protected function typeDate(Fluent $column)
return 'date';
}

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

/**
* Create the column definition for a date-time type.
*
Expand Down Expand Up @@ -625,6 +614,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
22 changes: 11 additions & 11 deletions src/Illuminate/Database/Schema/Grammars/SqlServerGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -495,17 +495,6 @@ protected function typeDate(Fluent $column)
return 'date';
}

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

/**
* Create the column definition for a date-time type.
*
Expand Down Expand Up @@ -582,6 +571,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 ba8e205

Please sign in to comment.