forked from aslan/applicant-site
refactoring migrations nullable or not
This commit is contained in:
parent
639a8c92af
commit
6954e296d6
|
@ -14,7 +14,7 @@ return new class extends Migration
|
||||||
Schema::create('admissions', function (Blueprint $table) {
|
Schema::create('admissions', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->integer('position');
|
$table->integer('position');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
|
|
|
@ -15,7 +15,7 @@ return new class extends Migration
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->integer('position');
|
$table->integer('position');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,7 +14,7 @@ return new class extends Migration
|
||||||
Schema::create('faculties', function (Blueprint $table) {
|
Schema::create('faculties', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->integer('position');
|
$table->integer('position');
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->foreignId('educational_institution_id')->constrained('educational_institutions');
|
$table->foreignId('educational_institution_id')->constrained('educational_institutions');
|
||||||
|
|
|
@ -11,7 +11,7 @@ return new class extends Migration
|
||||||
Schema::create('departments', function (Blueprint $table) {
|
Schema::create('departments', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->integer('position');
|
$table->integer('position');
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->foreignId('faculty_id')->constrained('faculties');
|
$table->foreignId('faculty_id')->constrained('faculties');
|
||||||
|
|
|
@ -14,7 +14,7 @@ return new class extends Migration
|
||||||
Schema::create('education_levels', function (Blueprint $table) {
|
Schema::create('education_levels', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
$table->timestamps();
|
$table->timestamps();
|
||||||
});
|
});
|
||||||
|
|
|
@ -14,7 +14,7 @@ return new class extends Migration
|
||||||
Schema::create('directions', function (Blueprint $table) {
|
Schema::create('directions', function (Blueprint $table) {
|
||||||
$table->id();
|
$table->id();
|
||||||
$table->string('name');
|
$table->string('name');
|
||||||
$table->text('description');
|
$table->text('description')->nullable();
|
||||||
$table->string('code');
|
$table->string('code');
|
||||||
$table->integer('position');
|
$table->integer('position');
|
||||||
$table->string('slug');
|
$table->string('slug');
|
||||||
|
|
Loading…
Reference in New Issue