This commit is contained in:
f4ilji
2024-11-18 01:37:28 +05:00
parent af69b48247
commit 4b103325f7
12 changed files with 165 additions and 15 deletions
@@ -0,0 +1,32 @@
<?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('workers_faculties', function (Blueprint $table) {
$table->string('service_email')->nullable()->after('position');
$table->string('service_phone')->nullable()->after('service_email');
$table->string('cabinet')->nullable()->after('service_phone');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('workers_faculties', function (Blueprint $table) {
$table->dropColumn('service_email');
$table->dropColumn('service_phone');
$table->dropColumn('cabinet');
});
}
};
@@ -0,0 +1,32 @@
<?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('workers_departments', function (Blueprint $table) {
$table->string('service_email')->nullable()->after('position');
$table->string('service_phone')->nullable()->after('service_email');
$table->string('cabinet')->nullable()->after('service_phone');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('workers_departments', function (Blueprint $table) {
$table->dropColumn('service_email');
$table->dropColumn('service_phone');
$table->dropColumn('cabinet');
});
}
};
@@ -0,0 +1,32 @@
<?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('teachers_departments', function (Blueprint $table) {
$table->string('email')->nullable()->after('teaching_position');
$table->string('phone')->nullable()->after('email');
$table->string('cabinet')->nullable()->after('phone');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('teachers_departments', function (Blueprint $table) {
$table->dropColumn('email');
$table->dropColumn('phone');
$table->dropColumn('cabinet');
});
}
};
@@ -0,0 +1,32 @@
<?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('division_user', function (Blueprint $table) {
$table->string('service_email')->nullable()->after('administrativePosition');
$table->string('service_phone')->nullable()->after('service_email');
$table->string('cabinet')->nullable()->after('service_phone');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('division_user', function (Blueprint $table) {
$table->dropColumn('service_email');
$table->dropColumn('service_phone');
$table->dropColumn('cabinet');
});
}
};