【问题标题】:change google datastore to Firestore in the same application在同一应用程序中将 google 数据存储更改为 Firestore
【发布时间】:2026-01-13 03:15:01
【问题描述】:

我在我的应用程序中使用了 google Datastore,我想迁移到 Google Firestore。我不断收到此错误消息

此项目使用其他数据库服务...您当前的项目设置为在 Datastore 模式下使用 Cloud Datastore 或 Cloud Firestore。您可以从 Cloud Datastore 控制台访问此项目的数据。

我尝试禁用 Cloud Datastore API,但没有成功。 有没有办法改成firestore?

我无法更改到另一个项目,因为我的客户已经使用旧的 firebase 项目安装了应用程序!

【问题讨论】:

    标签: firebase google-cloud-datastore google-cloud-firestore


    【解决方案1】:

    目前,您无法在同一项目中从 Datastore 切换到 Firestore。

    话虽如此,在 Cloud Firestore 正式发布一段时间后,Google 将开始联系现有 Cloud Datastore 数据库的所有者,以安排在 Datastore 模式下自动升级到 Cloud Firestore。如果您有使用 Cloud Datastore 的应用程序,则无需更新应用程序代码,升级也不需要停机。

    您可以在here找到更多信息。

    【讨论】:

      最近更新 更多