migrating-ravens / RavenMigrations

A small migrations framework to help you manage your RavenDB Instance.
MIT License
53 stars 24 forks source link

Not able to get this work with .NET Core 5 with Environments #58

Closed radenkozec closed 2 years ago

radenkozec commented 2 years ago

When I use something like [Migration(4,"Local","Staging","Development")] and run in Local environment my migration is not executed. When I use code without environments it works.

radenkozec commented 2 years ago

Solved by adding services.AddRavenDbMigrations(options => options.Profiles = new[] { Environment.EnvironmentName });