Total Complexity | 7 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | class TopicMigration extends Migration |
||
10 | { |
||
11 | public function handle($command) |
||
12 | { |
||
13 | $command->info('Migrating Topic...'); |
||
14 | $this->table('topic')->orderBy('tid', 'asc')->chunk(100, function ($items) { |
||
15 | foreach ($items as $item) { |
||
16 | $this->transform($item); |
||
17 | } |
||
18 | }); |
||
19 | $command->info('Migrating Topic Done'); |
||
20 | } |
||
21 | |||
22 | private function transform($item) |
||
53 | } |
||
54 | } |
||
56 |