Changes
This commit is contained in:
+32
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
+32
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
+32
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
+32
@@ -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');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user