开发者

google app engine

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

thanks in advance.


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜