In case of migration's version less than or equal 1.0.0 unhandled exception occurres

Issue #1 resolved
Arthur Osmokiesku repo owner created an issue

Min version of your migration must be greater than 1.0.0. If your migration version less than or equal Version(1, 0, 0) then Runner will thrown exception "Sequence contains no elements" with next stacktrace:

at System.Linq.Enumerable.Last[TSource](IEnumerable`1 source)
   at MongoDBMigrations.MigrationLocator.GetMigrations(Version currentVersion, Version targetVerstion)
   at MongoDBMigrations.MigrationRunner.UpdateTo(Version targetVersion)
   at MongoDBMigrations.MigrationRunner.UpdateToLatest()

Comments (1)

  1. Log in to comment