From 4e7b05007291431d2ad1113b0e2e7c4f9c59da31 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Tue, 5 Jan 2021 21:59:59 +1100 Subject: [PATCH] Make status_sort_order nullable --- .../2021_01_05_013203_improve_decimal_resolution.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/database/migrations/2021_01_05_013203_improve_decimal_resolution.php b/database/migrations/2021_01_05_013203_improve_decimal_resolution.php index ca2903ef8e9c..fd8f7f69c67b 100644 --- a/database/migrations/2021_01_05_013203_improve_decimal_resolution.php +++ b/database/migrations/2021_01_05_013203_improve_decimal_resolution.php @@ -1,5 +1,6 @@ decimal('rate', 20, 6)->change(); + $table->integer('status_sort_order')->nullable()->default(null)->change(); }); Schema::table('tax_rates', function (Blueprint $table) { @@ -131,9 +133,9 @@ class ImproveDecimalResolution extends Migration }); + Task::query()->update(['status_sort_order' => NULL]); TaskStatus::query()->update(['status_sort_order' => NULL]); - } /**