Miguel Nogueira
a4e415943a
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.
40 lines
973 B
PHP
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');
|
|
}
|
|
}
|