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

Closed
SOHELAHMED7/yii2-openapi
#8
@SOHELAHMED7

Description

@SOHELAHMED7

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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions