Skip to content

Commit 8551114

Browse files
committed
change order
1 parent f5a4077 commit 8551114

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/Illuminate/Foundation/Cloud.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,20 +76,20 @@ public static function configureUnpooledPostgresConnection(Application $app): vo
7676

7777
if (str_contains($host, 'pg.laravel.cloud') &&
7878
str_contains($host, '-pooler')) {
79+
$app['config']->set(
80+
'database.connections.pgsql-unpooled',
81+
array_merge($app['config']->get('database.connections.pgsql'), [
82+
'host' => str_replace('-pooler', '', $host),
83+
])
84+
);
85+
7986
$app['config']->set(
8087
'database.connections.pgsql.options',
8188
array_merge(
8289
$app['config']->get('database.connections.pgsql.options', []),
8390
[PDO::ATTR_EMULATE_PREPARES => true],
8491
),
8592
);
86-
87-
$app['config']->set(
88-
'database.connections.pgsql-unpooled',
89-
array_merge($app['config']->get('database.connections.pgsql'), [
90-
'host' => str_replace('-pooler', '', $host),
91-
])
92-
);
9393
}
9494
}
9595

0 commit comments

Comments
 (0)