Permalink
Browse files

New 'nullableTimestamps' method on Schema builder.

  • Loading branch information...
taylorotwell committed Nov 1, 2013
1 parent 5046370 commit a44fbab722c276fca0b09d7a22e446b7894bee93
Showing with 14 additions and 1 deletion.
  1. +12 −0 src/Illuminate/Database/Schema/Blueprint.php
  2. +2 −1 src/Illuminate/Foundation/changes.json
@@ -597,6 +597,18 @@ public function timestamp($column)
return $this->addColumn('timestamp', $column);
}
/**
* Add nullable creation and update timestamps to the table.
*
* @return void
*/
public function nullableTimestamps()
{
$this->timestamp('created_at')->nullable();
$this->timestamp('updated_at')->nullable();
}
/**
* Add creation and update timestamps to the table.
*
@@ -64,6 +64,7 @@
{"message": "Add support for order by and limit on MySQL update queries.", "backport": null},
{"message": "Tweak Container::resolve to accept a type, new resolvingAny method for all objects.", "backport": null},
{"message": "Do not run queue workers while application is in maintenance mode.", "backport": null},
{"message": "Values returned from scopes are now returned for chaining.", "backport": null}
{"message": "Values returned from scopes are now returned for chaining.", "backport": null},
{"message": "New 'nullableTimestamps' method on Schema builder.", "backport": null}
]
}

0 comments on commit a44fbab

Please sign in to comment.