forked from miguel456/rbrecruiter
RSM-3 Update team assoc relationship
This commit is contained in:
parent
dbeddd6fdb
commit
551741c687
|
@ -15,13 +15,11 @@ class AddTeamAssocToVacancies extends Migration
|
||||||
{
|
{
|
||||||
Schema::table('vacancies', function (Blueprint $table) {
|
Schema::table('vacancies', function (Blueprint $table) {
|
||||||
|
|
||||||
$table->bigInteger('ownerTeamID')->unsigned()->after('vacancyFormID');
|
$table->integer('ownerTeamID')->unsigned()->after('vacancyFormID');
|
||||||
|
|
||||||
$table->foreign('ownerTeamID')
|
$table->foreign('ownerTeamID')
|
||||||
->references('team_id')
|
->references('id')
|
||||||
->on('teams')
|
->on('teams');
|
||||||
->onDelete('cascade')
|
|
||||||
->onUpdate('cascade');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue