Set customer address nullable

This commit is contained in:
Djery-Tom 2023-06-29 10:52:17 +01:00
parent 22fe9e4bb3
commit 7e3a7fc0ca
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('payment_transactions', function (Blueprint $table) {
$table->string('customer_address')->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('payment_transactions', function (Blueprint $table) {
$table->string('customer_address')->change();
});
}
};