server/migractions.py
changeset 3412 368c68ffb99e
parent 3230 1d25e928c299
child 3589 a5432f99f2d9
equal deleted inserted replaced
3411:c867a096e11c 3412:368c68ffb99e
   671             except KeyError:
   671             except KeyError:
   672                 # specialized entity type not in schema, ignore
   672                 # specialized entity type not in schema, ignore
   673                 continue
   673                 continue
   674             if instspschema.specializes() != eschema:
   674             if instspschema.specializes() != eschema:
   675                 self.rqlexec('SET D specializes P WHERE D eid %(d)s, P name %(pn)s',
   675                 self.rqlexec('SET D specializes P WHERE D eid %(d)s, P name %(pn)s',
   676                               {'d': instspschema.eid,
   676                              {'d': instspschema.eid,
   677                                'pn': eschema.type}, ask_confirm=confirm)
   677                               'pn': eschema.type}, ask_confirm=confirm)
   678                 for rschema, tschemas, role in spschema.relation_definitions(True):
   678                 for rschema, tschemas, role in spschema.relation_definitions(True):
   679                     for tschema in tschemas:
   679                     for tschema in tschemas:
   680                         if not tschema in instschema:
   680                         if not tschema in instschema:
   681                             continue
   681                             continue
   682                         if role == 'subject':
   682                         if role == 'subject':