WIP: Road to 1.0.0 #1

Draft
miguel456 wants to merge 123 commits from develop into master
Showing only changes of commit dbeddd6fdb - Show all commits

View File

@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class AddTeamAssocToVacancies extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('vacancies', function (Blueprint $table) {
$table->bigInteger('ownerTeamID')->unsigned()->after('vacancyFormID');
$table->foreign('ownerTeamID')
->references('team_id')
->on('teams')
->onDelete('cascade')
->onUpdate('cascade');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('vacancies', function (Blueprint $table) {
//
});
}
}