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

Uploading multiple csv files in Index? #26

Open
super9xman opened this issue Mar 3, 2019 · 1 comment
Open

Uploading multiple csv files in Index? #26

super9xman opened this issue Mar 3, 2019 · 1 comment

Comments

@super9xman
Copy link

Hello,
Can we upload multiple csv files if they have created the index file? I used your repo example and tried to add to my firestore. Within the "csv-indexed" folder. I ran the following command

fire-migrate import --merge test.INDEX.csv myCollection

How ever, only the first file is written to the database and not the rest....any other way to automatically add one after the other?

I have about 450 rows each in 10 different files.

@stildalf
Copy link
Contributor

stildalf commented Mar 3, 2019

Hi super9xman,

You can, either:

  • list the multiple collections from the index file you'd like to import; or
  • import all of them by omitting or specifying '/' as the collection;

For selected collections:
fire-migrate import --merge test.INDEX.csv collection1 collection2 collection2/doc6/subcol1

For all collections:
fire-migrate import --merge test.INDEX.csv / or
fire-migrate import --merge test.INDEX.csv

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