SRoddis/Mongo.Migration

Cannot setup migrations to existing db

Closed this issue · 1 comments

  1. Added IDocument to document class
  2. Initialized Version to new DocumentVersion(0, 0, 0);
  3. Added required attributes
  4. Seed documents to an empty database
  5. service.AddMigrations

image

In debug mode, app is not even entering migrations Up method

If I seed db with documents without Version property, application is entering migrations Up method but after taking care of all documents its also throw an exception

image

Error occur after Up method affects all BsonDocuments
image

Hey,
I added a line that should fix the Problem. Please update to version 3.0.105.

Cheers,
Sean