32 lines
669 B
PHP
32 lines
669 B
PHP
<?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('menu_apps', function (Blueprint $table) {
|
|
$table->rename('magic_apps')->change();
|
|
});
|
|
}
|
|
|
|
/**
|
|
* Reverse the migrations.
|
|
*/
|
|
public function down(): void
|
|
{
|
|
Schema::table('magic_apps', function (Blueprint $table) {
|
|
$table->rename('menu_apps')->change();
|
|
});
|
|
}
|
|
};
|