--- 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)