如何将本地数据库转换为新版本?
我有 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可能需要包含
--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
您可以使用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.