Skip to content

Commit

Permalink
fix - wrong table
Browse files Browse the repository at this point in the history
  • Loading branch information
Tint Naing Win committed Sep 28, 2019
1 parent 9cf4ab9 commit 302271f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Convert/DatabaseJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,11 @@ public function convertTable($table, $columns)

commandText()->getOutput()->progressStart($count);

$model->select($select_columns)->orderBy('id')->chunk(100, function ($data) use($columns){
$model->select($select_columns)->orderBy('id')->chunk(100, function ($data) use($table, $columns){
foreach ($data as $value) {

$value->setTable($table);

foreach ($columns as $column) {
$value->{$column} = MyanFont::zg2uni($value->{$column});
}
Expand Down

0 comments on commit 302271f

Please sign in to comment.