3 use Illuminate\Database\Migrations\Migration;
4 use Illuminate\Database\Schema\Blueprint;
5 use Illuminate\Support\Facades\Schema;
7 return new class extends Migration
16 Schema::table('chat_logs', function (Blueprint $table) {
17 $table->string('detected_language')->nullable()->default(null);
18 $table->index(['detected_language']);
23 * Reverse the migrations.
27 public function down()
29 Schema::table('chat_logs', function (Blueprint $table) {
30 $table->dropColumn('detected_language');