# HG changeset patch # User Julien Cristau # Date 1450368848 -3600 # Node ID 2973522a192448409108c66063103b5856336daa # Parent 37c5c9b3b3bfc44befa00a832e962e6c04080f47 [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. diff -r 37c5c9b3b3bf -r 2973522a1924 server/migractions.py --- 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