rbrecruiter/database/migrations/2020_04_29_022642_create_vacancies_table.php
Miguel Nogueira a4e415943a Add save & update functionality to positions
Tooltips also added, as well as a general configuration file for Mojang Status URL.
Relationships were also added between forms and Vacancies.
Status verification for the dashboard was moved to a Service Provider, where it adds log entries when cache expires.
Authentication controllers were also updated to reflect the new dashboard URL.
2020-05-08 00:24:56 +01:00

40 lines
973 B
PHP

<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class CreateVacanciesTable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::create('vacancies', function (Blueprint $table) {
$table->id();
$table->string('vacancyName');
$table->longText('vacancyDescription');
$table->string('permissionGroupName');
$table->string('discordRoleID');
$table->bigInteger('vacancyFormID')->unsigned();
$table->integer('vacancyCount')->default(3);
$table->timestamps();
$table->foreign('vacancyFormID')->references('id')->on('forms');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::dropIfExists('vacancies');
}
}