Adding 'awaiting payment' order status to the DB
This commit is contained in:
parent
4214856f7b
commit
e3b01bd5be
|
|
@ -2,6 +2,7 @@
|
|||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use DB;
|
||||
|
||||
class AddSupportForOfflinePayments extends Migration
|
||||
{
|
||||
|
|
@ -21,6 +22,14 @@ class AddSupportForOfflinePayments extends Migration
|
|||
$table->text('offline_payment_instructions')->nullable();
|
||||
});
|
||||
|
||||
$order_statuses = [
|
||||
[
|
||||
'id' => 5,
|
||||
'name' => 'Awaiting Payment',
|
||||
],
|
||||
];
|
||||
|
||||
DB::table('order_statuses')->insert($order_statuses);
|
||||
|
||||
}
|
||||
|
||||
|
|
@ -39,5 +48,8 @@ class AddSupportForOfflinePayments extends Migration
|
|||
$table->dropColumn('enable_offline_payments');
|
||||
$table->dropColumn('offline_payment_instructions');
|
||||
});
|
||||
|
||||
DB::table('order_statuses')->where('name', 'Awaiting Payment')->delete();
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue