simpleidserver / SimpleIdServer

OpenID, OAuth 2.0, SCIM2.0, UMA2.0, FAPI, CIBA & OPENBANKING Framework for ASP.NET Core
https://simpleidserver.com/
Apache License 2.0
682 stars 90 forks source link

Database problem #727

Closed qq1176914912 closed 2 months ago

qq1176914912 commented 2 months ago

Hello, I found that your new version has made changes to the database. After I downloaded your latest project, I still used the original database for operation. After the project started, he successfully created a table in the database that did not exist before and modified the data table structure, but there is still a problem: image He will try to insert data into the Realms table, but I already have data, which causes a "duplicate key violation of the unique constraint "PK_Realms", but the data in my original database can't be changed, so what do I do?

qq1176914912 commented 2 months ago

I annotated "SeedData", which solved the problem, but I wasn't sure if something else would happen. image

simpleidserver commented 2 months ago

This issue is fixed in the master branch :)