-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
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
can not create table user in postgresql #3
Comments
Yep, sure. Need to think on that |
Yeah, just what I thought :) |
With tableName i can change the related name of the table. |
You can turn on identifier quoting using the Doctrine_Core::ATTR_QUOTE_IDENTIFIER attribute so that the reserved word is escaped with quotes. In Symfony you can try add one line to config/databases.yml:
|
Oh, thanks. I really thought Doctrine should do that bu default :) But if it doesn't that's really the best fix for it. |
http://trac.doctrine-project.org/ticket/1209 Bugs like this, is another side of this solution. Dunno, i've never used quote_identifier: true, prefer to rename tables ;) Good luck! |
Ok, I will update a prefix in next version. |
In PostgreSQL database, the word "user" is a reserved one. See http://www.postgresql.org/docs/8.4/interactive/sql-keywords-appendix.html.
It's possible rename to something like doauth_user, so all tables can have a suffix?
The text was updated successfully, but these errors were encountered: