1
0
Fork 0
mirror of synced 2024-07-03 13:41:01 +12:00

feat: update migration task

This commit is contained in:
Christy Jacob 2023-11-20 19:39:07 -05:00
parent 9a12ab8f8a
commit 28c61acec6
2 changed files with 7 additions and 5 deletions

View file

@ -99,8 +99,8 @@ class CalcTierStats extends Action
$projects = [$console];
$count = 0;
$limit = 30;
$sum = 30;
$limit = 100;
$sum = 100;
$offset = 0;
while (!empty($projects)) {
foreach ($projects as $project) {

View file

@ -79,8 +79,8 @@ class GetMigrationStats extends Action
$projects = [$console];
$count = 0;
$limit = 30;
$sum = 30;
$limit = 100;
$sum = 100;
$offset = 0;
while (!empty($projects)) {
foreach ($projects as $project) {
@ -123,7 +123,9 @@ class GetMigrationStats extends Action
return array_values($result);
}, $migrations);
$csv->insertAll($migrations);
if(!empty($migrations)) {
$csv->insertAll($migrations);
}
} catch (\Throwable $th) {
Console::error('Failed on project ("' . $project->getId() . '") with error on File: ' . $th->getFile() . ' line no: ' . $th->getline() . ' with message: ' . $th->getMessage());
} finally {