Skip to content

Commit

Permalink
Update migration yet again
Browse files Browse the repository at this point in the history
  • Loading branch information
tobytwigger committed Jun 8, 2020
1 parent 9bd2475 commit 74104df
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ public function up()
*/
public function down()
{
\BristolSU\Module\DataEntry\Models\Cell::whereNull('value')->update(['value' => '']);
\Illuminate\Support\Facades\DB::table('data_entry_cell')
->whereNull('value')
->update(['value' => '']);
Schema::table('data_entry_cell', function(Blueprint $table) {
$table->text('value')->nullable(false)->change();
});
Expand Down

0 comments on commit 74104df

Please sign in to comment.