skoruba/IdentityServer4.Admin

Redesign seeding of database

Open

#502 ouverte le 16 févr. 2020

Voir sur GitHub
 (2 commentaires) (0 réactions) (1 assigné)C# (1 125 forks)batch import
help wantedpriority: mediumtask

Métriques du dépôt

Stars
 (3 486 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur