Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure schema exists when creating migrations table #3039

Closed
B4nan opened this issue Apr 21, 2022 · 2 comments
Closed

Ensure schema exists when creating migrations table #3039

B4nan opened this issue Apr 21, 2022 · 2 comments
Labels
bug Something isn't working

Comments

@B4nan
Copy link
Member

B4nan commented Apr 21, 2022

Describe the bug
When using custom schema name in postgres, migrator tries to create the migrations table without ensuring the target schema exists.

To Reproduce
Steps to reproduce the behavior:

  1. specify custom schema
  2. try to use migrations when the schema does not exist yet
  3. profit

Expected behavior
Schema should be created/ensured before we try to create the migrations table.

Versions

Dependency Version
node 16.10
mikro-orm 5.1.2
postgres 5.1.2
@B4nan B4nan added the bug Something isn't working label Apr 21, 2022
@B4nan B4nan closed this as completed in f211813 Apr 21, 2022
@carlswann
Copy link

When is this fix going to be published?

@B4nan
Copy link
Member Author

B4nan commented Apr 25, 2022

Every commit is published to npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants