refactor(DB): make integration dependent fields nullable
Signed-off-by: miguel456 <me@nogueira.codes>
This commit is contained in:
parent
48df4eda56
commit
c598b6b805
@ -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();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user