I have a django project and I want to change property type of one of the 
models. My current model.py is:

class Person(ndb.Model):
    property_one= ndb.StringProperty()
    property_two= ndb.StringProperty()

and I want to change it to:

class Person(ndb.Model):
    property_one= ndb.TextProperty()
    property_two= ndb.TextProperty()

Both of my properties already have data and I cannot store more than 1500 
bytes. So I want to convert from string to text without losing any data. 
How can I achieve this?

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/53ec0b4c-6b9f-4748-9a1e-e419c610376e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • [google-appe... Heisenberg W
    • [google... 'Harmit Rishi (Cloud Platform Support)' via Google App Engine
      • [go... Heisenberg W
        • ... 'Tiago (Google Cloud Platform Support)' via Google App Engine
    • [google... Vitaly Bogomolov

Reply via email to