From 551741c6877905b312969d7c556cedb6c0c58937 Mon Sep 17 00:00:00 2001 From: Miguel N Date: Thu, 10 Sep 2020 19:41:19 +0100 Subject: [PATCH] RSM-3 Update team assoc relationship --- .../2020_09_10_181914_add_team_assoc_to_vacancies.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/database/migrations/2020_09_10_181914_add_team_assoc_to_vacancies.php b/database/migrations/2020_09_10_181914_add_team_assoc_to_vacancies.php index 24465fa..607cd61 100644 --- a/database/migrations/2020_09_10_181914_add_team_assoc_to_vacancies.php +++ b/database/migrations/2020_09_10_181914_add_team_assoc_to_vacancies.php @@ -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'); }); }