File: /var/www/html/laravel/database/migrations/2026_01_14_095058_update_aip_table.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('aips', function (Blueprint $table) {
$table->longText('response')->nullable()->change();
$table->longText('correct_response')->nullable()->change();
$table->longText('input')->change();
$table->text('file_name')->nullable()->change();
$table->text('file_path')->nullable()->change();
$table->string('model')->nullable()->default('gpt-4o-mini')->after('prompt_id');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};