Skip to content

Commit

Permalink
[9.x] Update database version check for lock popping for PlanetScale (#…
Browse files Browse the repository at this point in the history
…44925)

* update database version check for PlanetScale

* Simplify database version check
  • Loading branch information
narciero authored Nov 14, 2022
1 parent 0247079 commit 5f134c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/DatabaseQueue.php
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ protected function getLockForPopping()
if (Str::of($databaseVersion)->contains('MariaDB')) {
$databaseEngine = 'mariadb';
$databaseVersion = Str::before(Str::after($databaseVersion, '5.5.5-'), '-');
} elseif (Str::of($databaseVersion)->contains('vitess')) {
} elseif (Str::of($databaseVersion)->contains(['vitess', 'PlanetScale'])) {
$databaseEngine = 'vitess';
$databaseVersion = Str::before($databaseVersion, '-');
}
Expand Down

0 comments on commit 5f134c7

Please sign in to comment.