cubicweb/misc/migration/3.23.0_Any.py
changeset 11406 8ed625765a5c
parent 11365 eedf0684533c
child 11724 0fe3cf5c06b3
--- a/cubicweb/misc/migration/3.23.0_Any.py	Wed Jun 29 15:07:55 2016 +0200
+++ b/cubicweb/misc/migration/3.23.0_Any.py	Thu Jun 30 13:25:43 2016 +0200
@@ -54,8 +54,7 @@
                            'StaticVocabularyConstraint'):
         # These cannot be translate into backend CHECK.
         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}
     sql('ALTER TABLE cw_%(e)s ADD CONSTRAINT %(c)s CHECK(%(v)s)' % args)