Jim Clermonts
Jim Clermonts

Reputation: 2660

How to disable Firestore Datastore mode for new project and switch to Native Mode

I'm developing a new iOS / Android App for which I need Firestore Native Mode. In my old project I see my Cloud Firestore (in native mode) but in my new project I think I accidentally selected Data-store somewhere, but I didn't add data yet. How can I revert this because I don't want to start a complete new project.

I've read this documentation

Old project:

enter image description here

Current one: enter image description here

After creating 1 entity and removing the same entity, it's not possible anymore to switch to native: enter image description here

Upvotes: 3

Views: 5891

Answers (2)

ilNero
ilNero

Reputation: 183

You can switch to Native mode using the following Cloud shell command, but you need to clear all your entities.

gcloud alpha firestore databases update --type=firestore-native

Take a look at this link https://cloud.google.com/firestore/docs/firestore-or-datastore?hl=it#changing_between_native_mode_and_datastore_mode

Upvotes: 3

gso_gabriel
gso_gabriel

Reputation: 4670

If you have not added any data to the database, the option to change to Native Mode should appear similar to the be below screenshot, which you can access from the GCP console directly and not from the Firebase Console.

GCP

There you should be able to change to Native Mode, without creating a new project.

Upvotes: 7

Related Questions