Skip to content

Commit

Permalink
Modified team foreign key relation
Browse files Browse the repository at this point in the history
  • Loading branch information
mpociot committed May 18, 2016
1 parent 930edad commit 94b5c36
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/database/migrations.stub
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 94b5c36

Please sign in to comment.