我们正在使用google cloud datastore
存储数据,不幸的是最初没有遵循命名约定kinds
现在我们想要改变数据存储中已存在的种类的名称.
我们已经积累了大量的数据,并且生成这些数据涉及大量的计算,因此仅仅为了重命名一种类型而再次填充完整的数据对我们来说不是一个选择。
曾尝试找出它但没有运气。那么有什么我错过了并且可以帮助实现它的东西吗?
You cannot rename a kind
in datastore, Because the kind name is embedded with the key of each element in the datastore. You will have to write a
script to migrate all the data to the new kind
.
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)