mirror of
https://github.com/doctrine/orm.git
synced 2026-03-23 22:42:18 +01:00
Schema Tool keeps recreating table user when inside a schema in PostgreSQL
#7494
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ThomasLandauer on GitHub (Apr 6, 2025).
Bug Report
Summary
With the following mapping:
whenever I rerun
bin/console make:migration, I'm getting:This is apparently due to
userbeing a reserved word in SQL (or PostgreSQL), and the escaping Doctrine applies (as discussed in various issues at DBAL).When I remove the schema, it works as expected:
Workaround:
Rename the table in the database:
Current behavior
Expected behavior
How to reproduce