hooks/syncschema.py
branchstable
changeset 4928 cbca73dc9753
parent 4927 19fd1952ad63
child 4930 9fcc9ae2aebe
child 4948 5774491a1421
equal deleted inserted replaced
4927:19fd1952ad63 4928:cbca73dc9753
   542                 self.session, table, column, unique=True)
   542                 self.session, table, column, unique=True)
   543 
   543 
   544 
   544 
   545 class SourceDbCWConstraintDel(hook.Operation):
   545 class SourceDbCWConstraintDel(hook.Operation):
   546     """actually remove a constraint of a relation definition"""
   546     """actually remove a constraint of a relation definition"""
   547     rtype = subjtype = objtype = None # make pylint happy
   547     rtype = subjtype = None # make pylint happy
   548 
   548 
   549     def precommit_event(self):
   549     def precommit_event(self):
   550         cstrtype = self.cstr.type()
   550         cstrtype = self.cstr.type()
   551         table = SQL_PREFIX + str(self.subjtype)
   551         table = SQL_PREFIX + str(self.subjtype)
   552         column = SQL_PREFIX + str(self.rtype)
   552         column = SQL_PREFIX + str(self.rtype)