make rollback available in shell (as commit is)
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 22 Jan 2010 11:40:22 +0100
changeset 4330 cb7b68679501
parent 4329 815e08c53548
child 4333 7add8a73a168
make rollback available in shell (as commit is)
server/migractions.py
--- a/server/migractions.py	Fri Jan 22 11:40:09 2010 +0100
+++ b/server/migractions.py	Fri Jan 22 11:40:22 2010 +0100
@@ -264,6 +264,7 @@
         """return a dictionary to use as migration script execution context"""
         context = super(ServerMigrationHelper, self)._create_context()
         context.update({'commit': self.checkpoint,
+                        'rollback': self.rollback,
                         'checkpoint': deprecated('[3.6] use commit')(self.checkpoint),
                         'sql': self.sqlexec,
                         'rql': self.rqlexec,