Skip to content

fixed issue 4691 - #4694

Merged
pleerock merged 1 commit into
typeorm:masterfrom
CavidM:issue_4691
Sep 5, 2019
Merged

pleerock merged 1 commit into
typeorm:masterfrom
CavidM:issue_4691

Conversation

@CavidM

@CavidM CavidM commented Sep 5, 2019

Copy link
Copy Markdown
Contributor

@pleerock

pleerock commented Sep 5, 2019

Copy link
Copy Markdown
Member

Don't think it's a right approach but we can merge it for now. This would definitely fail again if we do not attach tests for this issue.

@cajames

cajames commented Sep 16, 2019

Copy link
Copy Markdown

@CavidM @pleerock This seems to cause an error for connection configs with replication. Please note the lack of the database property on the root object.

Example config:

{
  type: "mysql",
  replication: {
    master: {
      host: "DB_HOST",
      port: "DB_PORT",
      username: "DB_USER",
      password: "DB_PASSWORD",
      database: "DB_NAME"
    },
    slaves: [
      {
        host: "RO_DB_HOST",
        port: "DB_PORT",
        username: "DB_USER",
        password: "DB_PASSWORD",
        database: "DB_NAME"
      }
    ]
  },
  entities: [...]
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants