mongoengine icon indicating copy to clipboard operation
mongoengine copied to clipboard

Inspect Db

Open rozza opened this issue 14 years ago • 2 comments

Write a script to inspect a collection to create a model definition.

Problems will be the same field names containing mixed content ..

rozza avatar Jun 27 '11 13:06 rozza

Oh yeah.. It is a big problem for me. For example. model field type change.

Today:

class Product(Document):
    name = StringField()
    category = String() # Simple

Tomorrow :

class Product(Document):
    name = StringField()
    category = ListField(ReferenceField(Category)) # Changed to Complex !!!!!. Old data convert is big problem

etc...

Ankhbayar avatar Jun 28 '11 05:06 Ankhbayar

Misapplied the patch

rozza avatar Sep 09 '11 17:09 rozza