Skip to content

[messenger][Doctrine] doctrine:schema:create breaks #40130

@alexdruhet

Description

@alexdruhet

Symfony version affected: 5.2.3

Description
Using Postgresql and symfony/doctrine-messenger, upgrading to symfony/doctrine-messenger 5.2.3 breaks doctrine:schema:create command.

How to reproduce
bin/console doctrine:schema:create

Possible Solution
The bug was introduced by PR #40055. Reverting it solve the issue but also reopens #39928. This must be taking into account to define a PR.

For now I have put a composer version constraint:

...
"symfony/doctrine-messenger": "^5.1 <5.2.3",
...

Additional context
The response returned by bin/console doctrine:schema:create:

In ToolsException.php line 34:

Schema-Tool failed with Error 'An exception occurred while executing 'LOCK TABLE messenger_messages;':

SQLSTATE[25P01]: No active sql transaction: 7 ERROR: LOCK TABLE can only be used in transaction blocks' while executing DDL: LOCK TABLE messenger_messages;

In AbstractPostgreSQLDriver.php line 102:

An exception occurred while executing 'LOCK TABLE messenger_messages;':

SQLSTATE[25P01]: No active sql transaction: 7 ERROR: LOCK TABLE can only be used in transaction blocks

In Exception.php line 18:

SQLSTATE[25P01]: No active sql transaction: 7 ERROR: LOCK TABLE can only be used in transaction blocks

In PDOConnection.php line 125:

SQLSTATE[25P01]: No active sql transaction: 7 ERROR: LOCK TABLE can only be used in transaction blocks

doctrine:schema:create [--dump-sql] [--em [EM]]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy