Updated Version #2126
Unanswered
onexkacpermarcisz
asked this question in
Q&A
Updated Version
#2126
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I've just updated my project from .NET 6 to .NET 8 along with PiranhaCMS from 10.2.0 to 12.0.0. Now I'm encountering an issue at runtime related to the IdentityPostgreSQLDb context.
The error is as follows:
InvalidOperationException: An error was generated for warning 'Microsoft.EntityFrameworkCore.Migrations.PendingModelChangesWarning': The model for context 'IdentityPostgreSQLDb' has pending changes.
I attempted to generate a migration using the following command:
Add-Migration EFUpdate -Context IdentityPostgreSQLDb
However, I received a connection error (tried to connect to SOME IP) and I'm not sure how to make it use my local database and than on production server.
Could someone please help me figure out how to properly configure the context so that migrations run against my local setup?
Thanks in advance for any guidance!
Beta Was this translation helpful? Give feedback.
All reactions