diff --git a/database/migrations/2020_16_08_175446_set_cell_value_column_to_nullable.php b/database/migrations/2020_16_08_175446_set_cell_value_column_to_nullable.php index 37db3e0..3a4774f 100755 --- a/database/migrations/2020_16_08_175446_set_cell_value_column_to_nullable.php +++ b/database/migrations/2020_16_08_175446_set_cell_value_column_to_nullable.php @@ -25,6 +25,7 @@ public function up() */ public function down() { + \BristolSU\Module\DataEntry\Models\Cell::whereNull('value')->update(['value' => '']); Schema::table('data_entry_cell', function(Blueprint $table) { $table->text('value')->nullable(false)->change(); });