Skip to content

Commit

Permalink
fix base table not found
Browse files Browse the repository at this point in the history
  • Loading branch information
Tint Naing Win committed Oct 1, 2019
1 parent 6308566 commit 8f3e44b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ All notable changes to `kuu-pyaung` will be documented in this file.
## 3.0.0 (2019-09-27)
- initial release

## 2.0.3 (2019-10-02)
- fix base table not found

## 2.0.2 (2019-09-30)
- fix database table primary key.
- add excluded table columns.
Expand Down
4 changes: 3 additions & 1 deletion src/Convert/DatabaseJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,11 @@ public function convertTable($table, $columns)

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

$model->select($columns)->orderBy('id')->chunk(100, function ($data) use($columns){
$model->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 8f3e44b

Please sign in to comment.