-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
Description
[REQUIRED] Environment info
Firebase CLI v12.6.2
firebase-tools:
Linux
Platform:
[REQUIRED] Test case
- A Google Cloud project which is being used for Firebase
- At least one Datastore mode database in that project, with at least one entity (assume is called "fbcli"), and PITR is disabled
[REQUIRED] Steps to reproduce
firebase firestore:databases:update --point-in-time-recovery ENABLED fbclifirebase firestore:databases:update --point-in-time-recovery DISABLED fbcli- Delete the entity from Datastore
firebase firestore:databases:update --point-in-time-recovery DISABLED fbcli
[REQUIRED] Expected behavior
In all 3 cases, the database should be recognized as being in Datastore mode and the CLI should not make any changes. It should instead respond with an error message saying that only Firestore Native databases are supported by Firebase.
[REQUIRED] Actual behavior
- "Error: HTTP Error: 400, Updating database type and other fields together is not supported." PITR is not updated.
- Error: HTTP Error: 400, A document with key 't/123456789L' exists in the database. The database must be empty to make this change. Delete this document and try again.
- (Not part of Firebase-cli)
- CLI returns success message and database has changed to Firebase Native type.