Skip to content

Commit

Permalink
feat(equipes): - update all equipes table column nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdoulrachard committed Nov 18, 2024
1 parent 1ab69cd commit e03413f
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('equipes', function (Blueprint $table) {
$table->longText('descriptions')->nullable()->change();
$table->string('domaine_competence')->nullable()->change();
$table->string('formations')->nullable()->change();
$table->string('selections')->nullable()->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('equipes', function (Blueprint $table) {
$table->longText('descriptions')->nullable(false)->change();
$table->string('domaine_competence')->nullable(false)->change();
$table->string('formations')->nullable()->change(false);
$table->string('selections')->nullable()->change(false);
});
}
};

0 comments on commit e03413f

Please sign in to comment.