cubicweb/misc/migration/3.21.0_Any.py
changeset 11406 8ed625765a5c
parent 11129 97095348b3ee
child 11757 e845746b4d3c
--- a/cubicweb/misc/migration/3.21.0_Any.py	Wed Jun 29 15:07:55 2016 +0200
+++ b/cubicweb/misc/migration/3.21.0_Any.py	Thu Jun 30 13:25:43 2016 +0200
@@ -162,8 +162,7 @@
     cstr = rdef.constraint_by_eid(cwconstraint.eid)
     if cstr.type() not in ('BoundaryConstraint', 'IntervalBoundConstraint', 'StaticVocabularyConstraint'):
         continue
-    cstrname, check = check_constraint(rdef.subject, rdef.object, rdef.rtype.type,
-            cstr, helper, prefix='cw_')
+    cstrname, check = check_constraint(rdef, cstr, helper, prefix='cw_')
     args = {'e': rdef.subject.type, 'c': cstrname, 'v': check}
     if repo.system_source.dbdriver == 'postgres':
         sql('ALTER TABLE cw_%(e)s DROP CONSTRAINT IF EXISTS %(c)s' % args, ask_confirm=False)