use commit in migration script instead of checkpoint
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 08 Dec 2009 09:41:06 +0100
changeset 4017 a5b4d4f2a1c7
parent 4016 250784a2d105
child 4018 d4d4e7112ccf
use commit in migration script instead of checkpoint
server/migractions.py
--- a/server/migractions.py	Tue Dec 08 09:38:14 2009 +0100
+++ b/server/migractions.py	Tue Dec 08 09:41:06 2009 +0100
@@ -263,7 +263,8 @@
     def _create_context(self):
         """return a dictionary to use as migration script execution context"""
         context = super(ServerMigrationHelper, self)._create_context()
-        context.update({'checkpoint': self.checkpoint,
+        context.update({'commit': self.checkpoint,
+                        'checkpoint': deprecated('[3.6] use commit')(self.checkpoint),
                         'sql': self.sqlexec,
                         'rql': self.rqlexec,
                         'rqliter': self.rqliter,