Answer the question
In order to leave comments, you need to log in
How to use Postgresql schemas in Doctrine 2?
Good afternoon!
I understand with Doctrine + Postgresql, the question arose: how to make doctrine execute a query CREATE SCHEMA 'My_schema_name'
, and then correctly use the schema at work?
I tried to set the table name as schema.table_name, but the table is created in the schema public
and has the name schema`.`table
.
Answer the question
In order to leave comments, you need to log in
I won’t speak for doctrine, but the request of the schema.table_name format should work correctly. Alternatively, you can change the current default schema before the request via SET SCHEMA 'schema_name'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question