Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This library is not compatible Mongo.drive 3.0 #89

Open
jhonheve opened this issue Nov 4, 2024 · 2 comments
Open

This library is not compatible Mongo.drive 3.0 #89

jhonheve opened this issue Nov 4, 2024 · 2 comments

Comments

@jhonheve
Copy link

jhonheve commented Nov 4, 2024

When a migration file is create it does not compile correctly.

"Does not implement inherited abstract member DatabaseMigration.Down and DatabaseMigration.Up"

You must add a reference The type Mongodb.Drive version version=2.13.1, and the application has the 3.0.

@rpallares
Copy link

Unfortunatly the library look to not be really maintained anymore. That's sad I appreciate it.

The major issue with the new driver looks to be the serializers are now sealed ans cannot bé overriden directly.

I started a fork, but i'll probably be quite brutal in my cleanup to modernize it a bit and fit more with my needs.

@rpallares
Copy link

Hi, I almost done
https://github.com/rpallares/Mongo.Migration

I still need to update the documentation ans I have a few optimisation to do also. In a nutshell:

  • .net update
  • dependencies update
  • mongodb driver 3.0
  • remove mongo2go in favor of testcontainers
  • refactoring initialisation
    • Can migrate multiple database
    • remove collectionlocationattribute database
    • Can enable separately all migration types
    • add extension method to initialize before app startup
  • huge clean
  • various optimization
  • runtime migration unit tests

I probably forget some stuff.
I hesitate to remove startup document migration, I won't use it.

Feel free to add comments.
I'll propose an Mr here but i doubt it will be merged one day.
I'll also change the pipeline but that will be kept internal

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants