Skip to content
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

Closed
SOHELAHMED7 opened this issue Dec 31, 2022 · 0 comments · Fixed by SOHELAHMED7/yii2-openapi#8
Closed

Comments

@SOHELAHMED7
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
1 participant