Skip to content

Commit

Permalink
[5.3] Add soft deletes timestamp with timezone to database blueprint (#…
Browse files Browse the repository at this point in the history
…15737)

- Creates methods `softDeletesTz()` and `dropSoftDeletesTz()` to database migration blueprint
  • Loading branch information
Regan Johnson authored and taylorotwell committed Oct 3, 2016
1 parent ffbd31b commit c6e7d1a
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Illuminate/Database/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,16 @@ public function dropSoftDeletes()
$this->dropColumn('deleted_at');
}

/**
* Indicate that the soft delete column should be dropped.
*
* @return void
*/
public function dropSoftDeletesTz()
{
$this->dropSoftDeletes();
}

/**
* Indicate that the remember token column should be dropped.
*
Expand Down Expand Up @@ -821,6 +831,16 @@ public function softDeletes()
return $this->timestamp('deleted_at')->nullable();
}

/**
* Add a "deleted at" timestampTz for the table.
*
* @return \Illuminate\Support\Fluent
*/
public function softDeletesTz()
{
return $this->timestampTz('deleted_at')->nullable();
}

/**
* Create a new binary column on the table.
*
Expand Down

0 comments on commit c6e7d1a

Please sign in to comment.