This repository was archived by the owner on Jun 4, 2024. It is now read-only.
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
Don't use second db 'pg_test_db_2' in PgSQL in library source code #126
Description
File : yii2-openapi/src/lib/migrations/BaseMigrationBuilder.php
public function tmpSaveNewCol(\cebe\yii2openapi\db\ColumnSchema $columnSchema): \yii\db\ColumnSchema
{
$tableName = 'tmp_table_';
$db = 'db';
if (ApiGenerator::isPostgres() && static::isEnum($columnSchema)) {
$db = 'pg_test_db_2'; <--------------------- dont use this, pg_test_db_2 is just for test; it is used in lib; this require every app to set up second DB
}
type: bug
priority: high
Metadata
Metadata
Assignees
Labels
No labels