Abraham
Abraham

Reputation: 15760

Would you like to delete these indexes? Selecting no will continue the rest of the deployment

Firebase always requests to delete firestore indexes when deploying.

The following indexes are defined in your project but are not present in your firestore indexes file:
    (users) -- (role,ASCENDING) (name,ASCENDING)
? Would you like to delete these indexes? Selecting no will continue the rest of the deployment.

How can I include the indexes in my local project directory? or if not, make it always remember to not delete them?

Upvotes: 2

Views: 224

Answers (1)

Dharmaraj
Dharmaraj

Reputation: 50910

You can use firebase firestore:indexes command to print existing indexes in your project and update the file. You can then update the indexes with:

firebase deploy --only firestore:indexes

Upvotes: 2

Related Questions