Yii2: how to specify multiples database schemas?
问题 I am using PostgreSQL and the default database schema in my Yii2 application. I created a new schema called laboratory and I need to define it in the common/config/main-local.php file. This is my current main-local.php file: <?php return [ 'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'pgsql:host=localhost;dbname=travel', 'username' => 'aaaa', 'password' => 'bbbb', 'charset' => 'utf8', ], ], ]; How can I add the laboratory schema in this file? I need both schemas. Is