google app engine

帅比萌擦擦* 提交于 2020-01-06 14:19:10

问题


I have deployed one application in google app engine. In that application i have created three table. Now i need to add one new table to the existing application. is it possible can any one help me.

thanks in advance.


回答1:


If you are using python, just create the new model and save it and the new table will be created and the information saved. Note, new tables are not created until something is saved in them. I assume the same works in java, but I have never used java on AppEngine.

From the documentation http://code.google.com/appengine/docs/python/datastore/overview.html:

Unlike relational databases, the App Engine datastore does not require that all entities of a given kind have the same properties. The application can specify and enforce its data model using libraries included with the SDK, or its own code.

So if you create new properties or tables, they are added, but only to the new entities you save, the old entities remain unchanged.



来源:https://stackoverflow.com/questions/2842790/google-app-engine

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!