Skip to content
Back

Creating Index Failed

  • 0
  • Web
Drake
12 Jun, 2023, 21:04

Did you install the CLI?

TL;DR
The user is having trouble creating an index and migrating documents. They are seeking help and asking if there is a script available for the task. Another user suggests using the appwrite deploy collection command to deploy collections and offers guidance on migrating documents using the appwrite databases createDocument command. The user eventually figures it out and mentions installing the CLI.
RangerDev
12 Jun, 2023, 21:05

I got it working

RangerDev
12 Jun, 2023, 21:09

ok

RangerDev
12 Jun, 2023, 21:09

I read the docs

RangerDev
12 Jun, 2023, 21:09

appwrite databases getCollection --databaseId [DATABASE_ID] --collectionId [COLLECTION_ID]

RangerDev
12 Jun, 2023, 21:09

this is the closes thing I can find to migrate

RangerDev
12 Jun, 2023, 21:09

well

RangerDev
12 Jun, 2023, 21:09

it just gets collections

RangerDev
12 Jun, 2023, 21:09

I am unsure what to do after taht

RangerDev
12 Jun, 2023, 21:10

and this

appwrite databases createDocument \ --databaseId [DATABASE_ID] --collectionId [COLLECTION_ID] \ --documentId 'unique()' --data '{ "Name": "Iron Man" }' \ --permissions 'read("any")' 'write("team:abc")'

RangerDev
12 Jun, 2023, 21:10

@Steven help is appreciated

RangerDev
12 Jun, 2023, 21:11

oh wait

RangerDev
12 Jun, 2023, 21:15

@Steven

RangerDev
12 Jun, 2023, 21:15

$ appwrite deploy collection 648785f8d079d1a1e1d0 ? Which collections would you like to deploy? (Press <space> to select, <a> to ? Which collections would you like to deploy? Product (646538e35dd17306c589 - 646538eeeface7a4cd39) ℹ Info Deploying collection Product ( 646538e35dd17306c589 - 646538eeeface7a4cd39 ) ✓ Success Updated Products ( 646538e35dd17306c589 ) ℹ Info Collection Product ( 646538eeeface7a4cd39 ) already exists. ? Are you sure you want to override this collection? This can lead to loss

RangerDev
12 Jun, 2023, 21:15

I am so confused

RangerDev
12 Jun, 2023, 21:15

what does it mean deploy?

RangerDev
12 Jun, 2023, 21:18

I need help pelase

RangerDev
12 Jun, 2023, 21:22

its not doing anything

RangerDev
12 Jun, 2023, 21:29

@Steven I was able to migrate all the indexes and stuff

RangerDev
12 Jun, 2023, 21:30

now how do I migrate documents?

Drake
12 Jun, 2023, 21:33

Yes, the deployment is for creating collections

RangerDev
12 Jun, 2023, 21:33

now how do i migrate documents?

RangerDev
12 Jun, 2023, 21:33

is ther is script for that?

Drake
12 Jun, 2023, 21:35

You, you'll have to create a script for that yourself. You should have pulled that data down so that your script could use that data for creating the documents...

RangerDev
12 Jun, 2023, 21:36

okay...

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more