We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
user
With the following mapping:
#[ORM\Table(schema: 'my')] class User
whenever I rerun bin/console make:migration, I'm getting:
bin/console make:migration
$this->addSql('CREATE TABLE my."user" (...)'); $this->addSql('DROP TABLE my."user"');
This is apparently due to user being a reserved word in SQL (or PostgreSQL), and the escaping Doctrine applies (as discussed in various issues here).
When I remove the schema, it works as expected:
[WARNING] No database changes were detected.
Workaround: Rename the table in the database:
#[ORM\Table(name: 'users', schema: 'my')]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug Report
Summary
With the following mapping:
whenever I rerun
bin/console make:migration
, I'm getting:This is apparently due to
user
being a reserved word in SQL (or PostgreSQL), and the escaping Doctrine applies (as discussed in various issues here).When I remove the schema, it works as expected:
Workaround:
Rename the table in the database:
Current behavior
Expected behavior
How to reproduce
The text was updated successfully, but these errors were encountered: