diff -r 375fc1868b11 -r d62e13eba033 misc/migration/3.14.4_Any.py --- a/misc/migration/3.14.4_Any.py Thu Jun 27 08:52:15 2013 +0200 +++ b/misc/migration/3.14.4_Any.py Wed Jan 22 15:49:32 2014 +0100 @@ -4,7 +4,7 @@ rdefdef = schema['CWSource'].rdef('name') attrtype = y2sql.type_from_constraints(dbhelper, rdefdef.object, rdefdef.constraints).split()[0] -cursor = session.cnxset['system'] +cursor = session.cnxset.cu sql('UPDATE entities SET asource = source WHERE asource is NULL') dbhelper.change_col_type(cursor, 'entities', 'asource', attrtype, False) dbhelper.change_col_type(cursor, 'entities', 'source', attrtype, False)