misc/migration/3.14.4_Any.py
changeset 9463 d62e13eba033
parent 9450 af4b93bc38a5
child 10200 cceb2c7c02f4
--- 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)