[migration] handle non-existing attribute type when adding an entity type
The final type needs to be added to the schema first.
Related to #7569998.
--- a/server/migractions.py Wed Dec 09 17:44:17 2015 +0100
+++ b/server/migractions.py Thu Dec 17 17:14:08 2015 +0100
@@ -811,6 +811,8 @@
# ignore those meta relations, they will be automatically added
if rschema.type in META_RTYPES:
continue
+ if not attrschema.type in instschema:
+ self.cmd_add_entity_type(attrschema.type, False, False)
if not rschema.type in instschema:
# need to add the relation type and to commit to get it
# actually in the schema