[migration] fix backward compat for rename_relation stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 04 Sep 2012 06:52:41 +0200
branchstable
changeset 8530 2bceea9dee95
parent 8529 1daea1f433c9
child 8531 e150b4bcbfaa
[migration] fix backward compat for rename_relation
server/migractions.py
--- a/server/migractions.py	Tue Sep 04 06:09:17 2012 +0200
+++ b/server/migractions.py	Tue Sep 04 06:52:41 2012 +0200
@@ -1526,9 +1526,9 @@
     def cmd_reactivate_verification_hooks(self):
         self.session.enable_hook_categories('integrity')
 
-    @deprecated("[3.15] use session.rename_relation_type(oldname, newname)")
+    @deprecated("[3.15] use rename_relation_type(oldname, newname)")
     def cmd_rename_relation(self, oldname, newname, commit=True):
-        self.session.rename_relation_type(oldname, newname, commit)
+        self.cmd_rename_relation_type(oldname, newname, commit)
 
 
 class ForRqlIterator: