From af934168b0ad381a7e0bd027598d36f5d84da427 Mon Sep 17 00:00:00 2001 From: Gerben Mulder Date: Mon, 13 Dec 2021 11:01:08 +0100 Subject: [PATCH] Change columns order, add them after total_due same as the initial migration. --- database/migrations/upgrade_to_cashier_v2.php.stub | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/database/migrations/upgrade_to_cashier_v2.php.stub b/database/migrations/upgrade_to_cashier_v2.php.stub index 4ad124a6..e8cc0329 100644 --- a/database/migrations/upgrade_to_cashier_v2.php.stub +++ b/database/migrations/upgrade_to_cashier_v2.php.stub @@ -14,8 +14,8 @@ class UpgradeToCashierV2 extends Migration public function up() { Schema::table('orders', function (Blueprint $table) { - $table->unsignedInteger('amount_refunded')->default(0); - $table->unsignedInteger('amount_charged_back')->default(0); + $table->unsignedInteger('amount_refunded')->after('total_due')->default(0); + $table->unsignedInteger('amount_charged_back')->after('amount_refunded')->default(0); }); Schema::create('refunds', function (Blueprint $table) {