-
Notifications
You must be signed in to change notification settings - Fork 46
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
Is it possible to renameCollection? #169
Comments
No, there are no ability to rename collections now |
Hi, found the way to do this via
thing to note here is that u should run this command in I've sincerely wanted to make a PR, but the problem is that I'm getting the same error on different platforms - MacOS/Ubuntu: PHP Fatal error: Class 'MongoException' not found in /var/sites/php-mongo/src/Exception.php on line 17 My settings for mongodb in php is:
As u can c I'm using php7.1, probably this is the problem (backward compatibility support by your lib). |
You need compatibility layer for php > 7.0. See https://github.com/sokil/php-mongo/blob/master/README.md#installation. |
…n MongoCollection, add private method replaceRenameCollection
…ollection, Add parseDbDotCollection
https://docs.mongodb.com/manual/reference/method/db.collection.renameCollection/
In high-load systems there can be issues where one need to import data to collection xxx and then rename it to yyy that currently works on production server.
The text was updated successfully, but these errors were encountered: