Updated Version #2126
-
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:
I attempted to generate a migration using the following command:
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.
Replies: 2 comments 2 replies
-
Hi. Change following lines:
to something like this:
I face also issues with DateTime columns despite fact that ctor of |
Beta Was this translation helpful? Give feedback.
-
Here's a solution without suppressing warnings:
That solution adds new directory |
Beta Was this translation helpful? Give feedback.
Here's a solution without suppressing warnings:
appSettings.Development.json
Microsoft.EntityFrameworkCore.Design
within my projectProgram.cs
(default is Piranha.Data.EF.PostgreSql) for both PostgreSqlDB and IdentityPostgreSqlDb