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
для постгрес использую такие настройки
'yii\db\Connection', //'dsn' => 'mysql:host=localhost;dbname=localdb', 'dsn' => 'pgsql:host=*.ru;port=5432;dbname=DB_*', 'username' => '*', 'password' => '*', 'charset' => 'utf8', 'schemaMap' => [ 'pgsql' => [ 'class' => 'yii\db\pgsql\Schema', 'defaultSchema' => 'yii2', //specify your schema here ] ], 'on afterOpen' => function ($event) { $event->sender->createCommand("SET search_path TO yii2")->execute(); } ];
по умолчании берется схема public, что чаще всего нужно менять
The text was updated successfully, but these errors were encountered:
No branches or pull requests
для постгрес использую такие настройки
по умолчании берется схема public, что чаще всего нужно менять
The text was updated successfully, but these errors were encountered: