migration.py
branchstable
changeset 6042 df9cafb8062c
parent 6035 f8c7aa251782
child 6187 348c7d93cda3
--- a/migration.py	Fri Jul 30 09:52:46 2010 +0200
+++ b/migration.py	Fri Jul 30 11:11:08 2010 +0200
@@ -340,6 +340,7 @@
         elif script_mode == 'sql':
             from cubicweb.server.sqlutils import sqlexec
             sqlexec(open(migrscript).read(), self.session.system_sql)
+            self.commit()
         else: # script_mode == 'doctest'
             import doctest
             doctest.testfile(migrscript, module_relative=False,