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'); }); }