Skip to content

Commit

Permalink
Fixes app:setup command to correctly check for table existence (schem…
Browse files Browse the repository at this point in the history
…a manager is not useful here, because the table is excluded from schema manager)
  • Loading branch information
frostieDE committed Aug 11, 2024
1 parent 39ac788 commit 93796cc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Security/Session/ActiveSessionsResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ public function getSessionsForUser(User $user): array {

public function createTable(Connection $connection): void {
$schemaManager = $connection->createSchemaManager();
if($schemaManager->tablesExist('session_user')) {
$sql = "SHOW TABLES LIKE 'session_user';";
$row = $connection->executeQuery($sql);

if($row->fetchAssociative() !== false) {
return;
}

Expand Down

0 comments on commit 93796cc

Please sign in to comment.