Info
Version: | 4.0.0 |
Author(s): | Flexerant |
Last Update: | Sunday, April 16, 2023 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/flexerant/MongoMigration |
NuGet Url: | https://www.nuget.org/packages/Flexerant.MongoMigration |
Install
Install-Package Flexerant.MongoMigration
dotnet add package Flexerant.MongoMigration
paket add Flexerant.MongoMigration
Flexerant.MongoMigration Download (Unzip the "nupkg" after downloading)
Dependencies
net5.0
- Microsoft.AspNetCore.Http.Abstractions(>= 2.2.0)
- Microsoft.Extensions.DependencyInjection(>= 5.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions(>= 5.0.0)
- Microsoft.Extensions.Options(>= 5.0.0)
- MongoDB.Driver(>= 2.11.5)
- Microsoft.AspNetCore.Http.Abstractions(>= 2.2.0)
- Microsoft.Extensions.DependencyInjection(>= 3.1.10)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 3.1.10)
- Microsoft.Extensions.Logging.Abstractions(>= 3.1.10)
- Microsoft.Extensions.Options(>= 3.1.10)
- MongoDB.Driver(>= 2.11.5)
- Microsoft.AspNetCore.Http.Abstractions(>= 2.2.0)
- Microsoft.Extensions.DependencyInjection(>= 3.1.10)
- Microsoft.Extensions.DependencyInjection.Abstractions(>= 5.0.0)
- Microsoft.Extensions.Logging.Abstractions(>= 3.1.10)
- Microsoft.Extensions.Options(>= 3.1.10)
- MongoDB.Driver(>= 2.11.5)
Unlike other migration implementations, this library only offers forward-only migrations: the rationale being that all database changes should be auditable and forward-only migrations ensure that every change is tracked. To revert back to a previous state, simply write a migration that undoes the previous one(s).
With this library, migrations occur during startup and support dependency injection.