skoruba/IdentityServer4.Admin

Redesign seeding of database

Open

#502 aberto em 16 de fev. de 2020

Ver no GitHub
 (2 comments) (0 reactions) (1 assignee)C# (1.125 forks)batch import
help wantedpriority: mediumtask

Métricas do repositório

Stars
 (3.486 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 30d)

Description

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

Guia do colaborador