equal
deleted
inserted
replaced
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 |