equal
deleted
inserted
replaced
461 props = {'default': default, |
461 props = {'default': default, |
462 'indexed': entity.indexed, |
462 'indexed': entity.indexed, |
463 'fulltextindexed': entity.fulltextindexed, |
463 'fulltextindexed': entity.fulltextindexed, |
464 'internationalizable': entity.internationalizable} |
464 'internationalizable': entity.internationalizable} |
465 if entity.extra_props: |
465 if entity.extra_props: |
466 props.update(json.load(entity.extra_props)) |
466 props.update(json.loads(entity.extra_props.getvalue().decode('ascii'))) |
467 # entity.formula may not exist yet if we're migrating to 3.20 |
467 # entity.formula may not exist yet if we're migrating to 3.20 |
468 if hasattr(entity, 'formula'): |
468 if hasattr(entity, 'formula'): |
469 props['formula'] = entity.formula |
469 props['formula'] = entity.formula |
470 # update the in-memory schema first |
470 # update the in-memory schema first |
471 rdefdef, rdef = self.init_rdef(**props) |
471 rdefdef, rdef = self.init_rdef(**props) |