From c66c352921c777cf71269043b8d7e34e5e16bf1d Mon Sep 17 00:00:00 2001 From: omair saleh Date: Tue, 22 Sep 2020 10:08:00 +0800 Subject: [PATCH] change company details to nullable --- ...530_change_company_details_to_nullable.php | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 database/migrations/2020_09_22_024530_change_company_details_to_nullable.php diff --git a/database/migrations/2020_09_22_024530_change_company_details_to_nullable.php b/database/migrations/2020_09_22_024530_change_company_details_to_nullable.php new file mode 100644 index 00000000..9011e82d --- /dev/null +++ b/database/migrations/2020_09_22_024530_change_company_details_to_nullable.php @@ -0,0 +1,36 @@ +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) { + // + }); + } +}