Skip to content

Commit

Permalink
fixed messenger auto setup (#87)
Browse files Browse the repository at this point in the history
  • Loading branch information
benwalch committed Apr 17, 2024
1 parent da046ad commit ae24475
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Queue/Transport/ExtendedDoctrineConnection.php
Expand Up @@ -45,6 +45,19 @@ public function setup(): void
$this->autoSetup = false;
}

public function configureSchema(Schema $schema, DBALConnection $forConnection, \Closure $isSameDatabase): void
{
if ($schema->hasTable($this->configuration['table_name'])) {
return;
}

if ($forConnection !== $this->driverConnection && !$isSameDatabase($this->executeStatement(...))) {
return;
}

$this->addTableToSchema($schema);
}

public function get(): ?array
{
if ($this->driverConnection->getDatabasePlatform() instanceof MySQLPlatform) {
Expand Down

0 comments on commit ae24475

Please sign in to comment.