Skip to content

Instantly share code, notes, and snippets.

@vpetkovic
Last active June 8, 2020 01:00
Show Gist options
  • Save vpetkovic/9f6b62efb9bcc80511c14054e028f87f to your computer and use it in GitHub Desktop.
Save vpetkovic/9f6b62efb9bcc80511c14054e028f87f to your computer and use it in GitHub Desktop.
Using Pameelo MySQL provider. Hav to set charset collation to never append ` services.AddDbContext<AppDbContext>(config => { config.UseMySQL(_config.GetConnectionString("Default"), sql => sql
dotnet ef migrations add InitialIdentityServerPersistedGrantDbMigration -c PersistedGrantDbContext -o Data/Migrations/IdentityServer/PersistedGrantDb
dotnet ef migrations add InitialIdentityServerConfigurationDbMigration -c ConfigurationDbContext -o Data/Migrations/IdentityServer/ConfigurationDb
dotnet ef database update -c PersistedGrantDbContext
dotnet ef database update -c ConfigurationDbContext
dotnet ef migrations add init -c AppDbContext -o Data/Migrations/AppMigrations
dotnet ef database update -c AppDbContext
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment