Skip to content

Commit

Permalink
[UPDATE] unique attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
shuikang committed Mar 29, 2018
1 parent d841306 commit 97770dd
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ public function up()
DB::raw('CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP')
);

$table->unique(['problem_id', 'role_team_id', 'assigned_id']);

$table->foreign('problem_id')->references('id')->on('problems')
->onUpdate('cascade')->onDelete('cascade');
$table->foreign('role_team_id')->references('id')->on('role_teams')
Expand Down

0 comments on commit 97770dd

Please sign in to comment.