skoruba/IdentityServer4.Admin

Redesign seeding of database

Open

#502 aperta il 16 feb 2020

Vedi su GitHub
 (2 commenti) (0 reazioni) (1 assegnatario)C# (1125 fork)batch import
help wantedpriority: mediumtask

Metriche repository

Star
 (3486 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor