Ejemplo n.º 1
0
 def evolve(self):
     collection = mapper(Workspace).collection
     DBSession.drop_indexes(collection)
     DBSession.ensure_indexes(collection)
     DBSession.flush_all()
Ejemplo n.º 2
0
 def evolve(self):
     collection = mapper(Category).collection
     DBSession.drop_indexes(collection)
     DBSession.ensure_indexes(collection)
     DBSession.flush_all()