RSM-3 Update team assoc relationship

This commit is contained in:
Miguel Nogueira 2020-09-10 19:41:19 +01:00
parent dbeddd6fdb
commit 551741c687
1 changed files with 3 additions and 5 deletions

View File

@ -15,13 +15,11 @@ class AddTeamAssocToVacancies extends Migration
{
Schema::table('vacancies', function (Blueprint $table) {
$table->bigInteger('ownerTeamID')->unsigned()->after('vacancyFormID');
$table->integer('ownerTeamID')->unsigned()->after('vacancyFormID');
$table->foreign('ownerTeamID')
->references('team_id')
->on('teams')
->onDelete('cascade')
->onUpdate('cascade');
->references('id')
->on('teams');
});
}