change company details to nullable

This commit is contained in:
omair saleh
2020-09-22 10:08:00 +08:00
parent 2867256032
commit c66c352921
@@ -0,0 +1,36 @@
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class ChangeCompanyDetailsToNullable extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('invoices', function (Blueprint $table) {
$table->string('buyer_company')->default(null)->nullable()->change();
$table->string('address')->default(null)->nullable()->change();
$table->string('contact_no')->default(null)->nullable()->change();
$table->string('po_number')->default(null)->nullable()->change();
$table->string('reg_no')->default(null)->nullable()->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('invoices', function (Blueprint $table) {
//
});
}
}