misc/migration/postcreate.py
changeset 4835 13b0b96d7982
parent 4612 d6ae30c5d055
child 5174 78438ad513ca
child 5421 8167de96c523
--- a/misc/migration/postcreate.py	Mon Mar 08 19:02:35 2010 +0100
+++ b/misc/migration/postcreate.py	Tue Mar 09 08:59:43 2010 +0100
@@ -42,8 +42,8 @@
 
 # need this since we already have at least one user in the database (the default admin)
 for user in rql('Any X WHERE X is CWUser').entities():
-    session.unsafe_execute('SET X in_state S WHERE X eid %(x)s, S eid %(s)s',
-                           {'x': user.eid, 's': activated.eid}, 'x')
+    rql('SET X in_state S WHERE X eid %(x)s, S eid %(s)s',
+        {'x': user.eid, 's': activated.eid}, 'x')
 
 # on interactive mode, ask for level 0 persistent options
 if interactive_mode: