refactor(DB): make integration dependent fields nullable

Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
Miguel Nogueira 2022-10-15 02:34:07 +01:00
parent 48df4eda56
commit c598b6b805
No known key found for this signature in database
GPG Key ID: 3C6A7E29AF26D370

View File

@ -0,0 +1,24 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
class UpdateVacancyIntegrationNullable extends Migration
{
public function up()
{
Schema::table('vacancies', function (Blueprint $table) {
$table->string('permissionGroupName')->nullable()->change();
$table->string('discordRoleID')->nullable()->change();
});
}
public function down()
{
Schema::table('vacancies', function (Blueprint $table) {
$table->string('permissionGroupName')->nullable(false)->change();
$table->string('discordRoleID')->nullable(false)->change();
});
}
}