Skip to content

Commit 3f57556

Browse files
authored
fix: migration script (#447)
1 parent a4f2177 commit 3f57556

File tree

4 files changed

+6
-14
lines changed

4 files changed

+6
-14
lines changed

app-modules/database-migration/src/Commands/MigrateDatabaseCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function handle(
7474
$this->info('🔄 Migrating table: '.$table);
7575

7676
if (! $isDryRun) {
77-
$migrationService->migrateTable($table, $chunkSize, function (string $processed, int $total): void {
77+
$migrationService->migrateTable($table, $chunkSize, function (int $processed, int $total): void {
7878
$this->line(sprintf(' 📊 Processed %s/%s records', $processed, $total));
7979
});
8080
} else {

app/Actions/GetGithubRepositoriesAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function __invoke(): Collection
3030
return Cache::remember(
3131
key: 'github-repositories',
3232
ttl: now()->addMonth(),
33-
callback: fn () => collect($response->json())
33+
callback: fn (): Collection => collect($response->json())
3434
->reject(fn (array $value): bool => $value['fork'] === true || ! in_array($value['name'], $only))
3535
->map(fn (array $data): RepositoryData => RepositoryData::from($data))
3636
);

config/filesystems.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
'url' => env('AWS_URL'),
5656
'endpoint' => env('AWS_ENDPOINT'),
5757
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
58-
'root' => env('AWS_ROOT_DIRECTORY', 'public'),
58+
'root' => env('AWS_ROOT', 'public'),
5959
'visibility' => 'public',
6060
'directory_visibility' => 'public',
6161
'throw' => false,

docker-compose.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ services:
100100
condition: service_started
101101
memcached:
102102
condition: service_started
103-
# - soketi
103+
soketi:
104+
condition: service_healthy
104105
labels:
105106
- traefik.enable=true
106107
- traefik.http.routers.laravelcm.rule=Host(`${APP_DOMAIN:-laravelcm.local}`)
@@ -135,16 +136,7 @@ services:
135136
networks:
136137
- sail
137138
healthcheck:
138-
test:
139-
[
140-
"CMD",
141-
"pg_isready",
142-
"-q",
143-
"-d",
144-
"${DB_DATABASE}",
145-
"-U",
146-
"${DB_USERNAME}",
147-
]
139+
test: ["CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}"]
148140
retries: 3
149141
timeout: 5s
150142

0 commit comments

Comments
 (0)