Skip to content

Commit

Permalink
Update 2019_09_25_103421_update_task_results_duration_type.php (codes…
Browse files Browse the repository at this point in the history
…tudiohq#371)

- add missing table name
  • Loading branch information
jonnott committed Mar 27, 2024
1 parent e98011d commit 7bfff7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ private function migrateDurationValues(bool $toFloat = true)
->chunkById(100, function ($rows) use ($toFloat) {
foreach ($rows as $row) {
DB::connection(TOTEM_DATABASE_CONNECTION)
->table(TOTEM_TABLE_PREFIX)
->table(TOTEM_TABLE_PREFIX.'task_results')
->where('id', $row->id)
->update([
'duration' => $toFloat ? floatval($row->duration_old) : (string) $row->duration_old,
Expand Down

0 comments on commit 7bfff7f

Please sign in to comment.