From 94b5c3675ccc5a4bcce0cc593f0f2a8f410d811e Mon Sep 17 00:00:00 2001 From: Marcel Pociot Date: Wed, 18 May 2016 12:03:53 +0200 Subject: [PATCH] Modified team foreign key relation --- src/database/migrations.stub | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/database/migrations.stub b/src/database/migrations.stub index 90be613..a8beae8 100644 --- a/src/database/migrations.stub +++ b/src/database/migrations.stub @@ -39,7 +39,10 @@ class TeamworkSetupTables extends Migration ->onUpdate( 'cascade' ) ->onDelete( 'cascade' ); - $table->foreign( 'team_id' )->references( 'id' )->on( \Config::get( 'teamwork.teams_table' ) ); + $table->foreign( 'team_id' ) + ->references( 'id' ) + ->on( \Config::get( 'teamwork.teams_table' ) ) + ->onDelete( 'cascade' ); } ); Schema::create( \Config::get( 'teamwork.team_invites_table' ), function(Blueprint $table)