feat: Remove 'in_review' status from purchase workflow; implement logging for status changes and update related tests
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
DB::table('compras')
|
||||
->where('status', 'in_review')
|
||||
->update(['status' => 'pending_payment']);
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
// This cleanup cannot be reversed without changing legitimate pending purchases.
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user