File: /var/www/html/laravel/database/migrations/2024_11_19_135836_processed_notams_result_update.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
{
DB::statement("
UPDATE notams SET correct_response =
REPLACE(correct_response, '\"AVBL\"', '\"AVLB\"'),
updated_at = CURRENT_TIMESTAMP
");
}
/**
* Reverse the migrations.
*/
public function down(): void
{
//
}
};