如何从项目中完全删除 Cloud Datastore?
How do I completely delete Cloud Datastore from a project?
我想在现有项目中创建原生模式的 Firestore。
我在 Cloud Datastore 中没有任何数据,但它阻止了我,说
This project uses another database service
Your current project is set up to use Cloud Datastore or Cloud Firestore in Datastore mode. You can access data for this project from the Cloud Datastore console.
当经过 https://console.cloud.google.com/firestore/
和
Cannot enable Firestore for this project
Currently Firestore cannot be enabled in projects already using Cloud Datastore or App Engine
当经过 https://console.firebase.google.com/
我试过启用和禁用写入数据存储
我只想从我的项目中完全清除 Cloud Datastore
产品。
我刚刚试了一下。我删除了我所有的实体(测试项目)并禁用了我的数据存储 API,当我访问 console.firebase.google.com 页面时遇到了同样的问题。
这可能是一个需要通过支持(如果您有 Google 云平台的支持包)或我们的 issue tracker.
报告的问题
遗憾的是,无法清除以前存在的 Cloud Datastore 数据库来尝试原生或 Datastore 模式下的 Cloud Firestore。您必须使用新项目在原生或数据存储模式下试用 Cloud Firestore。
如果您有一个空的 Datastore 数据库并且您从未对数据库执行过写入操作,则可以在 Datastore 模式或本机模式下升级到 Firestore。
如果您没有收到此选项,那么您的数据库实例将在未来某个日期自动升级。
如果您在 Datastore 模式下从 Datastore 升级到 Firestore,或者从 Datastore 模式升级到 Native 模式,则无法撤消操作。
有关其他详细信息,请参阅此页面:
https://cloud.google.com/datastore/docs/upgrade-to-firestore
只需访问 https://console.cloud.google.com/....... 点击按钮,如果您没有添加任何数据,它将显示切换到本机的选项
仍然与 2020 年 6 月 10 日相同。
如果您只想锁定,请使用以下安全规则,它不会删除但会锁定您的 firestore,这样就没有人可以写入它。这不是您要寻找的答案,而是本着同样的精神。
// Deny read/write access to all users under any conditions
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
这是我今天(2021 年 2 月 16 日)Google 云支持的回复:
Generally, we do recommend to create a new project and enable Firestore therein. Nonetheless I may submit a request to delete your existing database which may allow you to change the database to the desired mode. However, please keep in mind that I’m unable to guarantee it’s approval.
我想在现有项目中创建原生模式的 Firestore。 我在 Cloud Datastore 中没有任何数据,但它阻止了我,说
This project uses another database service Your current project is set up to use Cloud Datastore or Cloud Firestore in Datastore mode. You can access data for this project from the Cloud Datastore console.
当经过 https://console.cloud.google.com/firestore/ 和
Cannot enable Firestore for this project Currently Firestore cannot be enabled in projects already using Cloud Datastore or App Engine
当经过 https://console.firebase.google.com/
我试过启用和禁用写入数据存储
我只想从我的项目中完全清除 Cloud Datastore
产品。
我刚刚试了一下。我删除了我所有的实体(测试项目)并禁用了我的数据存储 API,当我访问 console.firebase.google.com 页面时遇到了同样的问题。
这可能是一个需要通过支持(如果您有 Google 云平台的支持包)或我们的 issue tracker.
报告的问题遗憾的是,无法清除以前存在的 Cloud Datastore 数据库来尝试原生或 Datastore 模式下的 Cloud Firestore。您必须使用新项目在原生或数据存储模式下试用 Cloud Firestore。
如果您有一个空的 Datastore 数据库并且您从未对数据库执行过写入操作,则可以在 Datastore 模式或本机模式下升级到 Firestore。
如果您没有收到此选项,那么您的数据库实例将在未来某个日期自动升级。
如果您在 Datastore 模式下从 Datastore 升级到 Firestore,或者从 Datastore 模式升级到 Native 模式,则无法撤消操作。
有关其他详细信息,请参阅此页面: https://cloud.google.com/datastore/docs/upgrade-to-firestore
只需访问 https://console.cloud.google.com/....... 点击按钮,如果您没有添加任何数据,它将显示切换到本机的选项
仍然与 2020 年 6 月 10 日相同。
如果您只想锁定,请使用以下安全规则,它不会删除但会锁定您的 firestore,这样就没有人可以写入它。这不是您要寻找的答案,而是本着同样的精神。
// Deny read/write access to all users under any conditions
service cloud.firestore {
match /databases/{database}/documents {
match /{document=**} {
allow read, write: if false;
}
}
}
这是我今天(2021 年 2 月 16 日)Google 云支持的回复:
Generally, we do recommend to create a new project and enable Firestore therein. Nonetheless I may submit a request to delete your existing database which may allow you to change the database to the desired mode. However, please keep in mind that I’m unable to guarantee it’s approval.