set exchange_rate_id to nullable

This commit is contained in:
David Bomba 2021-06-24 20:01:22 +10:00
parent 28e3defc83
commit ff78f354e4

View File

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