# HG changeset patch # User Sylvain Thénault # Date 1268930275 -3600 # Node ID bca0873c0d6ece524c2581c4098a5906f26c61ba # Parent f4dce73da26bc48de94f5eebfeccc5d578479c82 [schema sync] fix another potential name error on synchronizing rdefs diff -r f4dce73da26b -r bca0873c0d6e server/migractions.py --- a/server/migractions.py Thu Mar 18 17:36:08 2010 +0100 +++ b/server/migractions.py Thu Mar 18 17:37:55 2010 +0100 @@ -479,13 +479,13 @@ rdef = rschema.rdef(subjtype, objtype) if rdef.infered: return # don't try to synchronize infered relation defs + repordef = reporschema.rdef(subjtype, objtype) confirm = self.verbosity >= 2 if syncprops: # properties self.rqlexecall(ss.updaterdef2rql(rschema, subjtype, objtype), ask_confirm=confirm) # constraints - repordef = reporschema.rdef(subjtype, objtype) newconstraints = list(rdef.constraints) # 1. remove old constraints and update constraints of the same type # NOTE: don't use rschema.constraint_by_type because it may be