This commit is contained in:
f4ilji
2024-11-26 15:43:53 +05:00
parent 5f8e38b8ab
commit 251073fecb
5 changed files with 40 additions and 5 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()
{
Schema::table('teachers_departments', function (Blueprint $table) {
$table->renameColumn('email', 'service_email');
$table->renameColumn('phone', 'service_phone');
});
}
/**
* Откатить миграцию.
*
* @return void
*/
public function down()
{
Schema::table('teachers_departments', function (Blueprint $table) {
$table->renameColumn('service_email', 'email');
$table->renameColumn('service_phone', 'phone');
});
}
};