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

Noy able to create schema on a postgres database #1

Open
Keerthikan opened this issue Aug 24, 2020 · 1 comment
Open

Noy able to create schema on a postgres database #1

Keerthikan opened this issue Aug 24, 2020 · 1 comment

Comments

@Keerthikan
Copy link

I am trying make use of this demo to migrate to an postgres databse, but for some reason is ef core not able to create the schema, and simce it does not exist it is not able to migrate to that particular schema. Does this way of changing schemas also work for postgres databases?

https://stackoverflow.com/questions/63429975/dbcontext-not-able-to-migrate-because-schema-does-not-exist

@PawelGerr
Copy link
Owner

In my demos I'm using SQL Server and EF Core for SQL Server is creating the schema automatically when the table __EFMigrationsHistory is created. Postgres might behave differently.
Btw, the pasted code on stackoverflow has UseSqlServer in it. Did you change it to UseNpgsql in your code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants