From 6f89699f1a4179d9973376add0a9889f9aa61841 Mon Sep 17 00:00:00 2001 From: snipe Date: Tue, 30 Aug 2016 08:52:33 -0700 Subject: [PATCH] Make purchase cost default to null MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t know why I need to do this? --- ..._30_084634_make_purchase_cost_nullable.php | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 database/migrations/2016_08_30_084634_make_purchase_cost_nullable.php diff --git a/database/migrations/2016_08_30_084634_make_purchase_cost_nullable.php b/database/migrations/2016_08_30_084634_make_purchase_cost_nullable.php new file mode 100644 index 000000000..c4eef30aa --- /dev/null +++ b/database/migrations/2016_08_30_084634_make_purchase_cost_nullable.php @@ -0,0 +1,29 @@ +decimal('purchase_cost',8,2)->nullable()->default(null)->change(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}