I’ve inherited an app which has entity keys stored as strings rather than actual Keys so of course they are not updated by the automatic tool for migration to the HRD datastore.
Can I programmatically (and if so, how) convert the keys stored as strings into strings which represent the new keys for the new app ID? (setting aside the fact that they should not be stored as strings in the first place).
If you are using
ndb:and to change the app ID, you can access the protected attribute
__appvia the public attribute_Key__appIf you are using
db:Then to convert the key to one with your new app ID, you can use