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

how to write a code in translation.rb file , if i want to copy entire table into specific mongo collection #133

Open
Komalil opened this issue Mar 24, 2017 · 5 comments

Comments

@Komalil
Copy link

Komalil commented Mar 24, 2017

Hi Friends,

Please help me to to resolve the issue ASAP.

@joandvgv
Copy link

Hi! Can you please provide us some more info?

The collection is already created and populated?

Mongify provides a pretty specific documentation.
You just need to execute the following command:

mongify translation database.config > translation_file.rb

It'll translate your database.config file to a translation_file.rb

Once done, you can start migrating your data.

@anlek
Copy link
Owner

anlek commented Mar 27, 2017

@joandvgv Thanks for jumping in. 👍

@anlek
Copy link
Owner

anlek commented Mar 27, 2017

The problem is that Mongify requires instructions on how to translate the tables.

If you run mongify translation database.config > translation.rb and it produces 4000+ tables in the file, you can quickly comment or delete all the tables you don't need. This way it will leave only the tables you want to move over.

Hope that helps!

@Komalil
Copy link
Author

Komalil commented Mar 27, 2017

Thanks for the reply anlek..

@Komalil
Copy link
Author

Komalil commented Mar 27, 2017

In future, is there enhancement to mongify tool related to this issue?
(Mean to say, Adding specific tables , instead of deleting or commenting unnecessary tables in translation.rb file ). Thanks for your support.

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

3 participants