misc/migration/3.14.4_Any.py
changeset 10200 cceb2c7c02f4
parent 9463 d62e13eba033
equal deleted inserted replaced
10199:218c28bff695 10200:cceb2c7c02f4
     1 from yams import schema2sql as y2sql
     1 from cubicweb.server import schema2sql as y2sql
     2 
     2 
     3 dbhelper = repo.system_source.dbhelper
     3 dbhelper = repo.system_source.dbhelper
     4 rdefdef = schema['CWSource'].rdef('name')
     4 rdefdef = schema['CWSource'].rdef('name')
     5 attrtype = y2sql.type_from_constraints(dbhelper, rdefdef.object, rdefdef.constraints).split()[0]
     5 attrtype = y2sql.type_from_constraints(dbhelper, rdefdef.object, rdefdef.constraints).split()[0]
     6 
     6