Comments (2)
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.
I understand. Thanks for the quick reply and good work on the tool.
from mongodb-migrations.
Related Issues (18)
- Clone v. new repo HOT 3
- When running `execute` a duplicate key error is thrown HOT 4
- Travis build runs twice on a push HOT 1
- Run travis with minimum requirements HOT 1
- 1.1.0-beta released
- Update phpunit to 6 or 7
- 2.0 updates HOT 5
- Set up automated code quality tool HOT 3
- Notice: Undefined variable: executedUnavailableMigrations
- Show versions fails due to a 'A non well formed numeric value encountered'
- Configuration class maintainability HOT 1
- Unused AbstractMigration $db and $connection attributes
- deprecate migrations script config and executeScript method
- Status command show versions to print description
- Current state and doctrine/mongodb-odm ^2 HOT 4
- Add CI for checking PRs HOT 1
- Upgrade guide from V2 to V3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongodb-migrations.