skoruba/IdentityServer4.Admin

Redesign seeding of database

Open

#502 建立於 2020年2月16日

在 GitHub 查看
 (2 留言) (0 反應) (1 負責人)C# (1,125 fork)batch import
help wantedpriority: mediumtask

倉庫指標

Star
 (3,486 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

For some use case is necessary to be able choose which db context is required for migration and seeding as well.

I am wondering about these modifications:

  • Add some parameters into AppSettings.json:
    • RunSeed
    • RunMigrationIdentityServerConfiguration -RunMigrationIdentityServerPersistedGrants
    • RunMigrationIdentity
    • RunMigrationAuditLogging
    • RunMigrationLogging

Final tables will be created according to options above.

Another thing is that maybe it would be fine - move whole process of seeding and database migration to separate project which it will be responsible only for this part.

Feedback is welcome. 👍🏼

貢獻者指南