Rename v2_order.refund_amount to surplus_credit (#967)
The old name was misleading — this column tracks surplus credit returned to the user's internal balance during plan upgrades, not a payment gateway refund. The new name aligns with the existing surplus_amount and surplus_order_ids naming convention. Co-authored-by: socksprox <[email protected]> Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
8f66a9af94
commit
34bb1fdbcf
3 files changed
+27
-5
No files matched your search
@@ -0,0 +1,22 @@
|
||||
<?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('v2_order', function (Blueprint $table) {
|
||||
$table->renameColumn('refund_amount', 'surplus_credit');
|
||||
});
|
||||
}
|
||||
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('v2_order', function (Blueprint $table) {
|
||||
$table->renameColumn('surplus_credit', 'refund_amount');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user