You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
bug #60211 [Messenger] Fix Oracle errors 'ORA-00955: Name is already used by an existing object' with Doctrine transport (atgitwk)
This PR was submitted for the 7.2 branch but it was squashed and merged into the 7.3 branch instead.
Discussion
----------
[Messenger] Fix Oracle errors 'ORA-00955: Name is already used by an existing object' with Doctrine transport
| Q | A
| ------------- | ---
| Branch? | 7.2
| Bug fix? | yes
| New feature? | no
| Deprecations? | no
| Issues | Fix#59903
| License | MIT
Initialization of MESSENGER objects causes an Oracle error when using `messenger:setup-transports`.
For more explanation, please see issue #59903
Commits
-------
45c3203 [Messenger] Fix Oracle errors 'ORA-00955: Name is already used by an existing object' with Doctrine transport
Copy file name to clipboardExpand all lines: src/Symfony/Component/Messenger/Bridge/Doctrine/Transport/Connection.php
+9-3Lines changed: 9 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -338,7 +338,9 @@ public function setup(): void
338
338
thrownew \TypeError(\sprintf('The table name must be an instance of "%s" or a string ("%s" given).', AbstractAsset::class, get_debug_type($tableName)));
// SchemaAssetsFilter needs to match the messenger table name and also the messenger sequence name to make $schemaDiff work correctly in updateSchema()
342
+
// This may also work for other databases if their sequence name is suffixed with '_seq', '_id_seq' or similar.
$serverVersion = $this->driverConnection->executeQuery("SELECT version FROM product_component_version WHERE product LIKE 'Oracle Database%'")->fetchOne();
575
+
if (version_compare($serverVersion, '12.1.0', '>=')) {
576
+
$idColumn->setAutoincrement(false); // disable the creation of SEQUENCE and TRIGGER
0 commit comments