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)