<?php
use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema;
return new class extends Migration { public function up():void { Schema::table('chain_transactions',function(Blueprint $t){$t->string('contract_address')->nullable()->after('to_address');$t->unsignedSmallInteger('token_decimals')->nullable()->after('contract_address');$t->index(['asset_id','finality_status']);});Schema::table('provider_events',function(Blueprint $t){$t->text('processing_error')->nullable();}); } public function down():void {Schema::table('provider_events',fn(Blueprint $t)=>$t->dropColumn('processing_error'));Schema::table('chain_transactions',function(Blueprint $t){$t->dropIndex(['asset_id','finality_status']);$t->dropColumn(['contract_address','token_decimals']);});} };
