如何将本地数据库转换为新版本?

发布于 2024-12-14 05:55:41 字数 238 浏览 3 评论 0原文

我有 GAE SDK 1.5.1,想将其升级到 1.5.5。不幸的是,我在 SDK 1.5.1 中使用的旧数据库没有加载到新的 SDK 1.5.5 中。我使用以下参数来运行本地服务器:

dev_appserver.py --datastore_path=../var/mydb.db --skip_sdk_update_check .

为什么它没有加载,以及如何使用 SDK 中现有的数据库1.5.5?

I have GAE SDK 1.5.1 and want to upgrade it to 1.5.5. Unfortunately my old db which is used in SDK 1.5.1 is not being loaded in new SDK 1.5.5. I use following arguments to run local server:

dev_appserver.py --datastore_path=../var/mydb.db --skip_sdk_update_check .

Why it's not loading, and how do I use the existed db in SDK 1.5.5?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你是我的挚爱i 2024-12-21 05:55:41

您可能需要包含 --default_partition= - 请参阅此处了解详细信息:

https://groups.google.com/d/topic/google-appengine/kJGPWT4fhgw/discussion

You might need to include --default_partition= - see here for details:

https://groups.google.com/d/topic/google-appengine/kJGPWT4fhgw/discussion

_蜘蛛 2024-12-21 05:55:41

您可以使用bulkloader来使用旧的SDK下载数据库的内容,并将它们上传到SDK。

然而,到目前为止,最好的选择是设置您的开发环境,以便您拥有一组可以轻松加载和重新加载的测试数据。 dev_appserver 的本地存根被设计为充当永久数据存储,您应该能够轻松地重新创建测试数据。

You could use the bulkloader to download the contents of the DB using the old SDK, and upload them to the SDK.

By far the best option, however, is to set up your development environment so you have a set of test data that's easily loaded and reloaded. The dev_appserver's local stub is not designed to act as a permanent datastore, and you should be able to recreate your test data easily.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文