This commit is contained in:
f4ilji
2024-11-05 15:09:22 +05:00
parent 4b693240e0
commit f01fecf1e6
@@ -0,0 +1,28 @@
<?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('departments', function (Blueprint $table) {
$table->text('search_data')->nullable()->after('faculty_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('departments', function (Blueprint $table) {
$table->dropColumn('search_data');
});
}
};