Skip to content

Commit 56af978

Browse files
author
Emmanuel Obua
committed
removed timestamp from villages and modified the batch
1 parent 35527d4 commit 56af978

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Console/TransformAndSeedLocale.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ private function seedTable(string $name, string $modelClass, callable $transform
121121
DB::unprepared("SET IDENTITY_INSERT {$table} ON");
122122
}
123123

124+
$batchSize = floor(2100/ $totalRecords);
124125

125126
if ($batchSize) {
126127
$chunks = array_chunk($data, $batchSize);

src/Services/LocaleService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ public function getTransformedVillages(): array
9191
'id' => (int) $village['id'],
9292
'name' => ucwords(strtolower($village['name'])),
9393
'parish_id' => (int) $village['parish'],
94-
'created_at' => Carbon::now(),
95-
'updated_at' => Carbon::now(),
94+
// 'created_at' => Carbon::now(),
95+
// 'updated_at' => Carbon::now(),
9696
]);
9797
}
9898

0 commit comments

Comments
 (0)