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. 👍🏼

贡献者指南