refactoring migrations nullable or not

This commit is contained in:
aslan 2024-02-14 16:19:31 +03:00
parent 639a8c92af
commit 6954e296d6
6 changed files with 6 additions and 6 deletions

View File

@ -14,7 +14,7 @@ return new class extends Migration
Schema::create('admissions', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->text('description')->nullable();
$table->string('slug');
$table->integer('position');
$table->timestamps();

View File

@ -15,7 +15,7 @@ return new class extends Migration
$table->id();
$table->string('name');
$table->string('slug');
$table->text('description');
$table->text('description')->nullable();
$table->integer('position');
$table->timestamps();
});

View File

@ -14,7 +14,7 @@ return new class extends Migration
Schema::create('faculties', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->text('description')->nullable();
$table->integer('position');
$table->string('slug');
$table->foreignId('educational_institution_id')->constrained('educational_institutions');

View File

@ -11,7 +11,7 @@ return new class extends Migration
Schema::create('departments', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->text('description')->nullable();
$table->integer('position');
$table->string('slug');
$table->foreignId('faculty_id')->constrained('faculties');

View File

@ -14,7 +14,7 @@ return new class extends Migration
Schema::create('education_levels', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->text('description')->nullable();
$table->string('slug');
$table->timestamps();
});

View File

@ -14,7 +14,7 @@ return new class extends Migration
Schema::create('directions', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->text('description');
$table->text('description')->nullable();
$table->string('code');
$table->integer('position');
$table->string('slug');