Giter VIP home page Giter VIP logo

Comments (2)

redthor avatar redthor commented on September 17, 2024

Ok, I see the call here:
https://github.com/doesntmattr/mongodb-migrations/blob/master/src/AntiMattr/MongoDB/Migrations/Version.php#L275
going over to
https://github.com/mongodb/mongo-php-library/blob/master/src/Database.php#L252

Hmm, unfortunately the following information from MongoDB means we simply cannot support $eval and executeScript() with MongoDB 4.2 ->
https://developer.mongodb.com/community/forums/t/eval-replacement-in-4-2/2917/2

In your production environment all new migrations will need to use alternative methods.

If you're reconstructing a test or development environment by running through all the migration versions, you could (1) replace each executeScript with an alternative or (2) create a snapshot and insert a migration version that represents your last <4.2 migration.

The second option means you can't go "down" below the migration version <4.2 - not that I see people downgrading that much.

from mongodb-migrations.

juhojama avatar juhojama commented on September 17, 2024

I understand. Thanks for the quick reply and good work on the tool.

from mongodb-migrations.

Related Issues (18)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.