Add alert_on_response_id to CheckoutAcceptance

This commit is contained in:
Marcus Moore
2025-06-05 13:10:18 -07:00
parent 444c13c6ea
commit 360f5b7538
2 changed files with 28 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ class CheckoutAcceptance extends Model
protected $casts = [
'accepted_at' => 'datetime',
'declined_at' => 'datetime',
'alert_on_response_id' => 'integer',
];
/**
@@ -0,0 +1,27 @@
<?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('checkout_acceptances', function (Blueprint $table) {
$table->unsignedBigInteger('alert_on_response_id')->nullable()->after('note');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('checkout_acceptances', function (Blueprint $table) {
$table->dropColumn('alert_on_response_id');
});
}
};