hooks/syncschema.py
changeset 5174 78438ad513ca
parent 4951 7dc54e12c606
child 5423 e15abfdcce38
equal deleted inserted replaced
5173:73760bbb66bd 5174:78438ad513ca
  1002                            column=SQL_PREFIX + rschema.type)
  1002                            column=SQL_PREFIX + rschema.type)
  1003         elif lastrel:
  1003         elif lastrel:
  1004             DropRelationTable(session, rschema.type)
  1004             DropRelationTable(session, rschema.type)
  1005         # if this is the last instance, drop associated relation type
  1005         # if this is the last instance, drop associated relation type
  1006         if lastrel and not self.eidto in pendings:
  1006         if lastrel and not self.eidto in pendings:
  1007             execute('DELETE CWRType X WHERE X eid %(x)s', {'x': self.eidto}, 'x')
  1007             execute('DELETE CWRType X WHERE X eid %(x)s', {'x': self.eidto})
  1008         MemSchemaRDefDel(session, (subjschema, rschema, objschema))
  1008         MemSchemaRDefDel(session, (subjschema, rschema, objschema))
  1009 
  1009 
  1010 
  1010 
  1011 # CWAttribute / CWRelation hooks ###############################################
  1011 # CWAttribute / CWRelation hooks ###############################################
  1012 
  1012